[hibernate-issues] [JIRA] (HSEARCH-3517) Optimize the computation of total hit count

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Mon Jul 27 04:24:50 EDT 2020


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

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMzVjMGJmYTViYTU5NGUxZWI3YjEwNzJkNjhmY2VhNmIiLCJwIjoiaiJ9 ) / Improvement ( https://hibernate.atlassian.net/browse/HSEARCH-3517?atlOrigin=eyJpIjoiMzVjMGJmYTViYTU5NGUxZWI3YjEwNzJkNjhmY2VhNmIiLCJwIjoiaiJ9 ) HSEARCH-3517 ( https://hibernate.atlassian.net/browse/HSEARCH-3517?atlOrigin=eyJpIjoiMzVjMGJmYTViYTU5NGUxZWI3YjEwNzJkNjhmY2VhNmIiLCJwIjoiaiJ9 ) Optimize the computation of total hit count ( https://hibernate.atlassian.net/browse/HSEARCH-3517?atlOrigin=eyJpIjoiMzVjMGJmYTViYTU5NGUxZWI3YjEwNzJkNjhmY2VhNmIiLCJwIjoiaiJ9 )

Change By: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

We currently always compute the total hit count when searching, but we could avoid that in some cases, for example when the user asks only for the hits.

Elasticsearch 7 provides the {{track_total_hits}} parameter to control that, and in Lucene we could remove the TotalHitCountCollector.

We should also look how to take advantage of the related optimization in Lucene allowing to stop the search when it's certain it cannot find any more hits. I don't recall the name of See this optimization, but video for more info on how it was mentioned in a presentation in the Search devroom at Fosdem 2019, in the afternoon works: https://archive. fosdem.org/2019/schedule/event/super_speedy_scoring_lucene/

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

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#100140- sha1:fbb0377 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200727/f442609a/attachment.html 


More information about the hibernate-issues mailing list