Hi,
I still don't fully understand the MC query language. I'm trying to return a list of artists. Each Artist should be in the list only once (distinct) and I would like to receive only 1 key of that artist.
I've tried this but that does not give me the result I want:
http://localhost:52199/MCWS/v1/Files/Search?Query=mediatype=[audio]&Fields=[Artist] ~nodup=[Artist]
It returns:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="MCWS - Files - 10348">
<Item>
<Field Name="Key">1</Field>
</Item>
<Item>
<Field Name="Key">2</Field>
</Item>
<Item>
<Field Name="Key">3</Field>
</Item>
<Item>
<Field Name="Key">4</Field>
</Item>
<Item>
<Field Name="Key">5</Field>
</Item>
<Item>
<Field Name="Key">6</Field>
</Item>
<Item>
<Field Name="Key">7</Field>
</Item>
....
</MPL>
Apart from the fact that it does not return the 'Artist' although requests in the 'Fields' the keys in the MPL are not corresponding to unique 'Artist' fields either.
Here is a result with Key and Artist
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="MCWS - Files - 10548">
<Item>
<Field Name="Key">1</Field>
<Field Name="Artist">Montana Taylor</Field>
</Item>
<Item>
<Field Name="Key">2</Field>
<Field Name="Artist">Jazzanova</Field>
</Item>
<Item>
<Field Name="Key">3</Field>
<Field Name="Artist">Jazzanova</Field>
</Item>
<Item>
<Field Name="Key">4</Field>
<Field Name="Artist">Jazzanova</Field>
</Item>
You can see that the keys 2, 3 and 4 are duplicates
I've tried several variations but I just do not seem to be able to get the desired result.
Regards
Paul