MultiSearch API

Hi,
How do I use multisearch api in my java program through my LowLevelRest client and HighLEvel Rest Client??

I have referred the documentation but can't understand much of it!

With the Low Level client you have to do most of the job by yourself.

Something like:

Map<String, String> params = Collections.emptyMap();
String jsonString = "/* All your requests here */";
HttpEntity entity = new NStringEntity(jsonString, ContentType.APPLICATION_JSON);
Response response = restClient.performRequest("GET", "/_msearch", params, entity); 
1 Like

And Similarly with HighLevel?
Is there any performance different in both cases?

_msearch is not implemented yet. See

Thanks !

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