Grokbase Groups Lucene dev March 2011
FAQ
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


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

Search Discussions

  • Erik Hatcher (JIRA) at Mar 17, 2011 at 1:52 pm
    [ https://issues.apache.org/jira/browse/SOLR-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007917#comment-13007917 ]

    Erik Hatcher commented on SOLR-2432:
    ------------------------------------

    Trunk sorting is working fine for me. Using the example data, &sort=id asc, &sort=id desc, &sort=name asc, &sort=name desc are all working fine.

    What is the field type you are sorting by?
    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

    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
  • Xing Li (JIRA) at Mar 18, 2011 at 6:19 am
    [ https://issues.apache.org/jira/browse/SOLR-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008344#comment-13008344 ]

    Xing Li commented on SOLR-2432:
    -------------------------------

    Once the solr.war is copied to webapps, star the app with

    java -Xmx4000M -Dsolr.solr.home=multicore -Djava.util.logging.config.file=logging.properties -jar start.jar

    The solr ip port will be bound to 11101 and use the test urls in the previous post.




    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
  • Michael Garski (JIRA) at Apr 10, 2011 at 10:03 pm
    [ 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
  • Yonik Seeley (JIRA) at Apr 11, 2011 at 12:17 am
    [ https://issues.apache.org/jira/browse/SOLR-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018175#comment-13018175 ]

    Yonik Seeley commented on SOLR-2432:
    ------------------------------------

    bq. It appears this is related to the solrconfig query option useFilterForSortedQuery.

    Ah, that was the missing piece of the puzzle. Thanks!
    I've committed a fix for useFilterForSortedQuery, but leaving this issue open so some tests can be added.
    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedMar 17, '11 at 12:50p
activeApr 11, '11 at 12:17a
posts5
users1
websitelucene.apache.org

1 user in discussion

Yonik Seeley (JIRA): 5 posts

People

Translate

site design / logo © 2021 Grokbase