[hibernate-issues] [JIRA] (HSEARCH-3974) Backend-specific extensions for scroll

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Thu Jul 30 12:03:19 EDT 2020


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

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiNzA2MDQ5ZDZiNmMwNDA1M2I3YTY3YTg1NzZiNjE1ZDEiLCJwIjoiaiJ9 ) / New Feature ( https://hibernate.atlassian.net/browse/HSEARCH-3974?atlOrigin=eyJpIjoiNzA2MDQ5ZDZiNmMwNDA1M2I3YTY3YTg1NzZiNjE1ZDEiLCJwIjoiaiJ9 ) HSEARCH-3974 ( https://hibernate.atlassian.net/browse/HSEARCH-3974?atlOrigin=eyJpIjoiNzA2MDQ5ZDZiNmMwNDA1M2I3YTY3YTg1NzZiNjE1ZDEiLCJwIjoiaiJ9 ) Backend-specific extensions for scroll ( https://hibernate.atlassian.net/browse/HSEARCH-3974?atlOrigin=eyJpIjoiNzA2MDQ5ZDZiNmMwNDA1M2I3YTY3YTg1NzZiNjE1ZDEiLCJwIjoiaiJ9 )

Issue Type: New Feature Assignee: Unassigned Components: backend-elasticsearch, backend-lucene Created: 30/Jul/2020 09:03 AM Fix Versions: 6.0.0.Beta-backlog Priority: Major Reporter: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

See item 12 in HSEARCH-3323:

> 
> 
> 
> Allow backends to extend the SearchScroll interfaces, like they currently
> do with SearchQuery ( ElasticsearchSearchQuery , LuceneSearchQuery ):
> 
> * Add a generic parameter S extends SearchScroll<H> to ExtendedSearchFetchable
> and override its scroll methods to return that type.
> * Adapt the interfaces that extend ExtendedSearchFetchable as necessary.
> * Create a new ExtendedSearchScroll<H> interface using the same principle.
> 
> * Create specific interfaces for Elasticsearch and Lucene: ElasticsearchSearchScroll
> and LuceneSearchScroll.
> * Implement these interfaces where appropriate.
> * Test extensions for Lucene and Elasticsearch. Mainly, check that the
> scroll has the correct type. See how it's done for SearchResult in org.hibernate.search.integrationtest.backend.elasticsearch.ElasticsearchExtensionIT#query
> .
> 

Optionally, we may also handle item 8, but let's discuss it together on Zulip first:

> 
> 
> 
> Add Lucene-specific extensions to Scrolling
> 
> * This is mainly necessary for Infinispan
> * Expose a way to force Lucene to extract TopDocs up to a specific index
> and retrieve them: LuceneSearchScroll#preloadTopDocsUpTo(), returns TopDocs
> 
> * Expose a way to load a specific document specified by its index: LuceneSearchScroll#loadHitByIndex(),
> returns H
> * Maybe we can improve on that later; ideally Infinispan should load
> multiple hits in one call ( LuceneSearchScroll#loadHitsByIndex(int ...),
> returns List<H> ) otherwise the cost of creating collectors for each
> retrieved hit will be a bit too much.
> 

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

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:5beb332 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200730/01641b36/attachment-0001.html 


More information about the hibernate-issues mailing list