Class: OpenSearch::DSL::Search::Filters::Terms

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/opensearch/dsl/search/filters/terms.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 any term from the specified list of terms

Examples:


search do
  query do
    filtered do
      filter do
        terms tags: ['ruby', 'development']
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize