Description
Expected behavior
I expect ReactiveElasticsearchOperations
to provide a multiSearch method that can perform a multi-search request using the reactive Elasticsearch client.
Actual behavior
Currently, there is no multiSearch
method provided by ReactiveElasticsearchOperations
.
Workaround
As a workaround, one can use the StringQuery and create a JSON string that represents a multi-search request. However, this workaround requires manual construction of the multi-search request JSON string, which can be error-prone and cumbersome for complex multi-search requests.
Proposal
I propose to add a multiSearch
method to ReactiveElasticsearchOperations
that can perform a multi-search request using the reactive Elasticsearch client. This method should simplify the construction of multi-search requests and improve the overall developer experience.
Additional context
Multi-search requests are an important feature of Elasticsearch, and their absence in the reactive Spring Data Elasticsearch v4 library limits the functionality and flexibility of reactive Elasticsearch applications. It is also worth noting that the non-reactive version of Spring Data Elasticsearch already supports multiSearch
.