You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2013/04/11 00:15:18 UTC
[jira] [Resolved] (LUCENE-4925) IndexSearcher.search is broken when
IndexSearcher.executor != null and the sort contains SortField.FIELD_SCORE
[ https://issues.apache.org/jira/browse/LUCENE-4925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand resolved LUCENE-4925.
----------------------------------
Resolution: Fixed
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org