[hibernate-issues] [JIRA] (HSEARCH-3322) Expose reactive-friendly methods for simple use cases

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Wed Jul 29 13:07:59 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=eyJpIjoiNTNkZGY1OGYzNzQ1NDY1ZThkYWFkZjZjZGMzZDhmYmEiLCJwIjoiaiJ9 ) / New Feature ( https://hibernate.atlassian.net/browse/HSEARCH-3322?atlOrigin=eyJpIjoiNTNkZGY1OGYzNzQ1NDY1ZThkYWFkZjZjZGMzZDhmYmEiLCJwIjoiaiJ9 ) HSEARCH-3322 ( https://hibernate.atlassian.net/browse/HSEARCH-3322?atlOrigin=eyJpIjoiNTNkZGY1OGYzNzQ1NDY1ZThkYWFkZjZjZGMzZDhmYmEiLCJwIjoiaiJ9 ) Expose reactive-friendly methods for simple use cases ( https://hibernate.atlassian.net/browse/HSEARCH-3322?atlOrigin=eyJpIjoiNTNkZGY1OGYzNzQ1NDY1ZThkYWFkZjZjZGMzZDhmYmEiLCJwIjoiaiJ9 )

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

For now, just implement reactive ways to execute indexing operations (workers) 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 an {{ executeAsync fetchAsync ()}} method, or rename the current (synchronous) {{execute}} to {{executeAndWait}} and introduce a new asynchronous {{execute}} 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

See branch f2f-2018: https://github.com/hibernate/hibernate-search-6-poc/commit/fb66f9c4196bc06db7742c4df15337bcdb21cc25

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

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:42b370d )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200729/4c56f488/attachment.html 


More information about the hibernate-issues mailing list