Is it possible to perform multiple, nested search queries (as per
BoolQueryBuilder), each nested query run against a potentially different set
of indices? Like a UNION in SQL: "return all hits where property=X in
(indexA,indexB) OR property=Y in (indexA,indexC)".
This used to be possible with Compass, but indices are specified at the
request- rather than the query level in ElasticSearch. I'd have to run each
search clause individually and UNION them up myself, which feels like a bad
Is there a better way to do this using ES?
(I should probably add that, though my indices represent different data
domains - so I can't replace them with one index and multiple types (unless
you disagree?) - they do have common properties so that they can be searched