Merge pull request #14272 from elastic/cbuescher-update-indicesquery-docs

Update indices-query.asciidoc
This commit is contained in:
Christoph Büscher 2015-10-23 23:00:29 +02:00
commit ef06094df1

View File

@ -1,10 +1,11 @@
[[query-dsl-indices-query]]
=== Indices Query
The `indices` query can be used when executed across multiple indices,
allowing to have a query that executes only when executed on an index
that matches a specific list of indices, and another query that executes
when it is executed on an index that does not match the listed indices.
The `indices` query is useful in cases where a search is executed across
multiple indices. It allows to specify a list of index names and an inner
query that is only executed for indices matching names on that list.
For other indices that are searched, but that don't match entries
on the list, the alternative `no_match_query` is executed.
[source,js]
--------------------------------------------------