[mb-devel] Is there any more info on the ext:rating returned by the xmlwebservice when you sort for tracks without a Puid

Paul Taylor paul_t100 at fastmail.fm
Wed Dec 13 16:50:54 UTC 2006


Hi Rob

Just tried this (using http://test.musicbrainz.org not wonk which doesnt
work), but has confused me further, the example shows two values passed
to a single parameter,

The new query on test server seem to show an 'OR on the two values for
any field,
The title query ones seems to show an 'AND' on the title on the test server
The title query ones seems to show an 'OR' on the title on the live server.

In my original query i was discussing AND versus OR for the individual
parameters e.g search on Title and Artist, I was assuming within the a
single parameter Lucene would do a sort of Like search, i.e for the
examples below it would search where title is similar to 'could sweet',
and that the change made would cause

http://test.musicbrainz.org/ws/1/track/?type=xml&title=could+sweet&artist=portishead


to only return results where title and artist matched whereas before it
would return results that matched on either, but I didn't expect it to
change what results were returned by the

title=could+sweet

bit

if this is as intended, an example of how to use the query parameter to
do a search on Title and Artist, allowing results which match only one
or the other would be appreciated

paul


Robert Kaye wrote:
>
> On Dec 7, 2006, at 3:13 PM, Paul Taylor wrote:
>
>> Ok, can you just put it back to how it was then please
>
> These changes are part of the greater WS-Lucene-bugfixes release
> intended to fix bugs in the WS. Given what people are expecting (AND
> semantics) I will leave this code as is.
>
> However, each of the three collection queries now support a new query
> argument. This argument can contain a full lucene query -- if this
> argument is present then the rest of the arguments passed to the
> collection URL will be ignored. This way you can use any semantics,
> any arguments, anything that tickles your fancy for making collection
> queries.
>
> Compare:
>
> http://wonk/ws/1/track/?type=xml&query=could+sweet
>
> with
>
> http://wonk/ws/1/track/?type=xml&title=could+sweet
>
> -- 
>
> --ruaok Somewhere in Texas a village is *still* missing its idiot.
>
> Robert Kaye -- rob at eorbit.net -- http://mayhem-chaos.net
>
>
>
> _______________________________________________
> MusicBrainz-devel mailing list
> MusicBrainz-devel at lists.musicbrainz.org
> http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel
>
>
> --Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.13.27/517 - Release Date:
> 03/11/2006
>
>




More information about the MusicBrainz-devel mailing list