INTERACT FORUM

More => Old Versions => JRiver Media Center 31 for Windows => Topic started by: mattkhan on January 01, 2024, 06:46:18 am

Title: How does the filter work in MCWS Library/Values?
Post by: mattkhan 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?
Title: Re: How does the filter work in MCWS Library/Values?
Post by: Hendrik 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.
Title: Re: How does the filter work in MCWS Library/Values?
Post by: mattkhan on January 01, 2024, 08:17:34 am
Ok, thanks for the explanation. Perhaps the mcws doc comment could be improved?