INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How does the filter work in MCWS Library/Values?  (Read 257 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3971
How does the filter work in MCWS Library/Values?
« on: January 01, 2024, 06:46:18 am »

is this a bug or the behaviour is not intuitive?

I make this call

Library/Values?Filter=Rock&Field=Artist&Files=[Media%20Type]=[Audio]

the results are

Code: [Select]
<Response Status="OK">
<Item Name="Artist">Pete Rock & C.L. Smooth</Item>
<Item Name="Artist">Punk Rock Baby</Item>
<Item Name="Artist">Chubb Rock</Item>
<Item Name="Artist">Pete Rock & CL Smooth (feat YG'z)</Item>
<Item Name="Artist">School Of Rock</Item>
<Item Name="Artist">Rocksteady Crew</Item>
<Item Name="Name">School Of Rock</Item>
<Item Name="Name">(Hey You) The Rock Steady Crew</Item>
<Item Name="Artist">Rob Base & DJ Ez Rock</Item>
<Item Name="Artist">Rick Astley</Item>
<Item Name="Artist">Ricky Nelson</Item>
<Item Name="Artist">Slick Rick</Item>
<Item Name="Artist">Rickster</Item>
<Item Name="Artist">Rochelle Fleming</Item>
</Response>

1) despite only asking for Artist, I get some "Name" values
2) despite sending Filter=Rock, I get a number of results that don't contain Rock

can anyone explain?
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10754
Re: How does the filter work in MCWS Library/Values?
« Reply #1 on: January 01, 2024, 07:31:47 am »

I assume the fuzzy matcher accepts Rick for Rock (and Roch for Rock), which is where those come from.

For some reason it also always includes the [Name] field in results, but only if the file was previously matched by the other search criteria (eg. one of your "Rock" artists has a title that also includes "Rock").
I'm hesitant to touch this searching logic as its used all over.
Logged
~ nevcairiel
~ Author of LAV Filters

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3971
Re: How does the filter work in MCWS Library/Values?
« Reply #2 on: January 01, 2024, 08:17:34 am »

Ok, thanks for the explanation. Perhaps the mcws doc comment could be improved?
Logged
Pages: [1]   Go Up