Msearch Java Elasticsearch 8.9

I am trying to use the Java 8.9 client to send multi-search requests (Multi search API | Elasticsearch Guide [8.10] | Elastic) but am getting a NullPointerException when waiting for the results to come back…

Is there a limit to the number of requests I can send? I am attempting to send ~500 in one search.

Each request is sending a Boolean query within an index within a specified date range and is either a query string query or a geospatial distance query.

I was able to get results back with a single request sent via the multi-search API call… Albeit the results were empty as nothing was found.

I also am able to get results back from the same queries using the single-search/non-multi-search API.

Was hoping to be able to use the multi-search for these larger requests.

Any thoughts/help would be great!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.