Use wildcard in Multi Get Java API


#1

Hi Team,

Is there a way to use wildcard to get document from multiple indices in Java API ? For example, currently I have to use prepareMultiGet as below:

MultiGetResponse multiGetItemResponses = client.prepareMultiGet()
.add("index_01", "index_01", "foo")
.add("index_02", "index_02", "foo")
.add("index_03", "index_03", "foo")
.get();

May I just use a wildcard index name, for example index_* to get doc from the indices ?


(system) #2

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