Class: Elasticsearch::DSL::Search::Filters::Ids

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

Overview

A filter which returns documents matching the specified IDs

Examples:


search do
  query do
    filtered do
      filter do
        ids values: [1, 2, 3]
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize