[ https://issues.apache.org/jira/browse/LUCENE-4925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand updated LUCENE-4925: --------------------------------- Attachment: LUCENE-4925.patch Patch. Without the patch applied, the new test in TestSort would fail whenever LuceneTestCase.newSearcher would return a Searcher that collects segments in parallel. > IndexSearcher.search is broken when IndexSearcher.executor != null and the > sort contains SortField.FIELD_SCORE > -------------------------------------------------------------------------------------------------------------- > > Key: LUCENE-4925 > URL: https://issues.apache.org/jira/browse/LUCENE-4925 > Project: Lucene - Core > Issue Type: Bug > Affects Versions: 4.2.1 > Reporter: Adrien Grand > Assignee: Adrien Grand > Fix For: 4.3 > > Attachments: LUCENE-4925.patch > > > When executor != null, IndexSearcher performs two passes to compute the top > docs. This doesn't work when the sort contains SortField.FIELD_SCORE because > the second pass doesn't have access to scores computed in the first pass. > Since search(...) doesn't compute scores when there is a sort, they are all > Float.NaN. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org