[
https://issues.apache.org/jira/browse/LUCENE-4925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13628225#comment-13628225
]
Michael McCandless commented on LUCENE-4925:
--------------------------------------------
Good catch! +1
> 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: [email protected]
For additional commands, e-mail: [email protected]