Class: OpenSearch::DSL::Search::Filters::Limit

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

Overview

A filter which limits the number of documents to evaluate

Examples:


search do
  query do
    filtered do
      filter do
        limit value: 100
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize