Java high level rest client - If I am searching from multiple indices and one of my index is not,I am getting "no such index" exception, instead of exception I want the documents from other indices which are present. IS IT POSSIBLE?

(Aswini Kumar Rout) #1

Let, I am searching from 3 indices and one of the index is not present, So I am getting "type=index_not_found_exception, reason=no such index" exception but I have some documents present in another two indices which matches with the search-key.

So my question is - is there any way so that instead of exception I can get the results which are matching from other 2 indices.

(David Pilato) #2

Can you make the title shorter?

Are you using concrete index names or wildcards?
May be using index aliases would be a better choice?