You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael Garski (JIRA)" <ji...@apache.org> on 2011/04/11 00:03:05 UTC

[jira] [Commented] (SOLR-2432) using sort option only returns numFound=1 even if there are many more matching

    [ https://issues.apache.org/jira/browse/SOLR-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018162#comment-13018162 ] 

Michael Garski commented on SOLR-2432:
--------------------------------------

It appears this is related to the solrconfig query option useFilterForSortedQuery. I had it enabled and experienced the same behavior as Xing, yet as Erik observed the examples worked fine.  Xing's example had the option enabled while the examples do not.  Disabling that option made sorting work as expected.

> using sort option only returns numFound=1 even if there are many more matching
> ------------------------------------------------------------------------------
>
>                 Key: SOLR-2432
>                 URL: https://issues.apache.org/jira/browse/SOLR-2432
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Xing Li
>              Labels: 4.0, sort, trunk
>         Attachments: solr.tgz
>
>
> 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.
>  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org