]
Emmanuel Bernard updated HSEARCH-545:
-------------------------------------
Assignee: Emmanuel Bernard
Fix Version/s: (was: 3.3.0)
3.3.0.Beta2
Unable to project FullTextQuery.SCORE when using a custom Sort
--------------------------------------------------------------
Key: HSEARCH-545
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-545
Project: Hibernate Search
Issue Type: Bug
Components: engine
Affects Versions: 3.2.0.Final
Reporter: Hardy Ferentschik
Assignee: Emmanuel Bernard
Fix For: 3.3.0.Beta2
Due to [changes in
Lucene|http://lucene.apache.org/java/2_9_0/changes/Changes.html#2.9.0.cha...]
regarding the calculation of the score projections of {{FullTextQuery.SCORE}} return NaN
when a custom sort is used.
IndexSearcher javadoc:
{quote}
By default, no scores are computed when sorting by field (using
Searcher.search(Query,Filter,int,Sort)). You can change that, per IndexSearcher instance,
by calling IndexSearcher.setDefaultFieldSortScoring
{quote}
See also [Search forum
thread|https://forum.hibernate.org/viewtopic.php?f=9&t=1005262]
Without custom sort projecting on {{FullTextQuery.SCORE}} works as
{{ProjectionQueryTest}} shows.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: