[mb-devel] Sorting

Robert Kaye rob at eorbit.net
Mon Dec 11 20:42:53 UTC 2006


On Dec 9, 2006, at 2:16 PM, sarvesh wrote:

> Hi,
> I can't seem to find this information. Is it possible to get the  
> results of a web service call sorted on a particular field? If it  
> is not available I can add this feature if someone can guide me on  
> where and how this would best fit in the MB Server code. Here is an  
> example of what I am trying to do
>
> http://musicbrainz.org/ws/1/release/? 
> type=xml&artistid=72c536dc-7137-4477- 
> a521-567eeb840fa8&releasetypes=Official&limit=10
>
> This list returns a list of all official releases by Bob Dylan  
> problem is it is not sorted on any particular field.

It is sorted by the score, which in this case is 100 for each of your  
hits so it looks like its not sorted. The score is a lucene ranking  
score, which is the text searching engine that handles the collection  
searches.

I'll be doing a major revamp of the web service docs after the  
upcoming release on sunday.

--

--ruaok      Somewhere in Texas a village is *still* missing its idiot.

Robert Kaye     --     rob at eorbit.net     --    http://mayhem-chaos.net





More information about the MusicBrainz-devel mailing list