Class: OpenSearch::DSL::Search::Queries::Terms

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

Overview

Note:

The specified terms are *not analyzed* (lowercased, stemmed, etc)

A query which returns documents matching the specified terms

Examples:


search do
  query do
    terms categories: ['World', 'Opinion']
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize