class OpenSearch::DSL::Search::Queries::Indices

A query which executes a custom query only for documents in specified indices, and optionally another query for documents in other indices

@example

search do
  query do
    indices do
      indices        ['audio', 'video']
      query          match: { artist: 'Fugazi' }
      no_match_query match: { label:  'Dischord' }
    end
  end
end

@see opensearch.org/guide/en/opensearch/reference/current/query-dsl-indices-query.html