Class: Elasticsearch::DSL::Search::Filters::Term

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

Overview

Note:

The specified terms are *not analyzed* (lowercased, stemmed, etc), so they must match the indexed terms.

A filter which returns documents matching the specified terms

Examples:


search do
  query do
    filtered do
      filter do
        term color: 'red'
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize