Class: Elasticsearch::DSL::Search::Queries::Indices

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/elasticsearch/dsl/search/queries/indices.rb

Overview

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

Examples:


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

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize