class Elasticsearch::DSL::Search::Options
Wraps the “extra” options of a search definition
@see www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html
Constants
- DSL_METHODS
Public Class Methods
new(*args, &block)
click to toggle source
# File lib/elasticsearch/dsl/search/options.rb, line 41 def initialize(*args, &block) @hash = {} end
Public Instance Methods
empty?()
click to toggle source
Returns true when there are no search options defined
# File lib/elasticsearch/dsl/search/options.rb, line 59 def empty? @hash.empty? end
to_hash(options={})
click to toggle source
Convert the definition to a Hash
@return [Hash]
# File lib/elasticsearch/dsl/search/options.rb, line 67 def to_hash(options={}) @hash end