MultiSearch API


(Teddy) #1

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!


(David Pilato) #2

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); 

(Teddy) #3

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


(David Pilato) #4

_msearch is not implemented yet. See


(Teddy) #5

Thanks !


(system) #6

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