[JIRA] (HSEARCH-3322) Async, reactive-friendly methods for simple search and indexing
by Yoann Rodière (JIRA)
Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%... ) *updated* an issue
Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMmI4MGVi... ) / New Feature ( https://hibernate.atlassian.net/browse/HSEARCH-3322?atlOrigin=eyJpIjoiMmI... ) HSEARCH-3322 ( https://hibernate.atlassian.net/browse/HSEARCH-3322?atlOrigin=eyJpIjoiMmI... ) Async, reactive-friendly methods for simple search and indexing ( https://hibernate.atlassian.net/browse/HSEARCH-3322?atlOrigin=eyJpIjoiMmI... )
Change By: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%... )
For now, just implement reactive ways to execute indexing operations (indexer) and queries (SearchQuery interface). Don’t worry about the rest for now. In particular, let’s not consider scrolls yet.
The current APIs seem to mostly do the job, returning {{CompletableFuture}} for indexing works. For search queries, we could add {{fetchAsync()}} methods.
Scrolling, or multi-result operations in general, will be another story. We may have to implement Flow.Publisher, but that requires Java 9 at least. So, as I said above... let's not worry about that for now.
Note: it would be interesting to introduce some tests using the stub backend, maybe the POJO mapper, and ~~ - RxJava2 ~~ - Mutiny
See branch f2f-2018: [https://github.com/hibernate/hibernate-search-6-poc/commit/fb66f9c4196bc0...]
( https://hibernate.atlassian.net/browse/HSEARCH-3322#add-comment?atlOrigin... ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3322#add-comment?atlOrigin... )
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.... ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailN... ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:d3cc1a2 )
1 year, 11 months