Class: Elasticsearch::DSL::Search::Queries::Term

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

Overview

Note:

The specified term is *not analyzed* (lowercased, stemmed, etc)

A query which returns documents matching the specified term

Examples:


search do
  query do
    term category: 'Opinion'
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize