Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2432

using sort option only returns numFound=1 even if there are many more matching

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 4.0-ALPHA
    • None
    • search

    Description

      Using 4.0 trunk version as of 3/16/2011

      Not sure at which point in the 4.0 trunk did this problem happen but this did not happen in previous versions.

      Symptom:

      1) Assume you have a search db with a query for "love" that returns 500 results.
      2) Append "&sort=anyfield desc" to the search query and you now only get 1 result back.

      I even rebuilt the db from scratch to make sure it was not a corrupted solr db but that is not the case.

      Temporary Fix:

      1) Append ",score desc" to the "sort" value such as "&sort=anyfield desc,score desc" fixes the issue and gives back the correct result.

      Attachments

        1. solr.tgz
          5.62 MB
          Xing Li

        Activity

          People

            Unassigned Unassigned
            diegomontoya Xing Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: