The media scanner does not sort the results of search queries

Bug #1234145 reported by James Henstridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediascanner
Fix Released
Undecided
James Henstridge
mediascanner (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

To perform searches, the media scanner uses a custom Collector class that implements the offset/limit behaviour and passes the results off to an ItemVistor (sic) callback function.

However, results are passed to a Lucene collector either in document ID order or an undefined order (depending on what the collector returns from its acceptsDocsOutOfOrder()) method. This means that for broad searches, the most relevant results probably won't be at the top, and may even get cut off if a result limit has been specified.

Related branches

Changed in mediascanner:
assignee: nobody → James Henstridge (jamesh)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mediascanner at revision 389, scheduled for release in mediascanner, milestone Unknown

Changed in mediascanner:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mediascanner - 0.3.93+13.10.20131011-0ubuntu1

---------------
mediascanner (0.3.93+13.10.20131011-0ubuntu1) saucy; urgency=low

  [ Michal Hruby ]
  * Increase discovery timeout, log why discovery failed. (LP: #1236878,
    #1234726)

  [ James Henstridge ]
  * If a limit on the number of results for a search is given, sort the
    results. (LP: #1234145)
  * Download album art to the media art cache during scanning rather
    than storing remote URLs in the index.
  * Depend on ca-certificates to fix test failure caused by libsoup
    warnings about missing /etc/ssl/certs/ca-certificates.crt.

  [ Jussi Pakkanen ]
  * Download album art to the media art cache during scanning rather
    than storing remote URLs in the index.

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 392
 -- Ubuntu daily release <email address hidden> Fri, 11 Oct 2013 09:20:33 +0000

Changed in mediascanner (Ubuntu):
status: New → Fix Released
Changed in mediascanner:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.