Class: Elasticsearch::DSL::Search::Filters::Range

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

Overview

A filter which returns documents that have terms in a specified range

Examples:


search do
  query do
    filtered do
      filter do
        range :age do
          gte 10
          lte 20
        end
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize