[hibernate-issues] [JIRA] (HSEARCH-3917) Use TopScoreDocCollector when a descending score sort is requested explicitly

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Thu May 14 04:09:25 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *closed* an issue as *Won't Fix*

It's actually not a good idea, as it results in inconsistent values being returned by LuceneSearchQuery.getLuceneSort() and LuceneSearchResult.getTopDocs()}: when the sort is non-null but contains only a sort by descending score, we end up returning top docs while "scoreDocs" are {{ScoreDoc instances instead of the expected FieldDoc instances. This in turn complicates the (user) implementation of merging top docs.

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiODMxZGRlMWU1YWVlNDQ4ODkyYTc5MTgwZDRiZGI1MzAiLCJwIjoiaiJ9 ) / Improvement ( https://hibernate.atlassian.net/browse/HSEARCH-3917?atlOrigin=eyJpIjoiODMxZGRlMWU1YWVlNDQ4ODkyYTc5MTgwZDRiZGI1MzAiLCJwIjoiaiJ9 ) HSEARCH-3917 ( https://hibernate.atlassian.net/browse/HSEARCH-3917?atlOrigin=eyJpIjoiODMxZGRlMWU1YWVlNDQ4ODkyYTc5MTgwZDRiZGI1MzAiLCJwIjoiaiJ9 ) Use TopScoreDocCollector when a descending score sort is requested explicitly ( https://hibernate.atlassian.net/browse/HSEARCH-3917?atlOrigin=eyJpIjoiODMxZGRlMWU1YWVlNDQ4ODkyYTc5MTgwZDRiZGI1MzAiLCJwIjoiaiJ9 )

Change By: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) Fix versions: 6.0.0.Beta-backlog-high-priority Resolution: Won't Fix Status: In Progress Closed

( https://hibernate.atlassian.net/browse/HSEARCH-3917#add-comment?atlOrigin=eyJpIjoiODMxZGRlMWU1YWVlNDQ4ODkyYTc5MTgwZDRiZGI1MzAiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3917#add-comment?atlOrigin=eyJpIjoiODMxZGRlMWU1YWVlNDQ4ODkyYTc5MTgwZDRiZGI1MzAiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:a719cbc )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200514/34553652/attachment.html 


More information about the hibernate-issues mailing list