class OpenSearch::DSL::Search::Options

Wraps the “extra” options of a search definition

Constants

DSL_METHODS

Public Class Methods

new(*args, &block) click to toggle source
# File lib/opensearch/dsl/search/options.rb, line 49
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/opensearch/dsl/search/options.rb, line 67
def empty?
  @hash.empty?
end
to_hash(options={}) click to toggle source

Convert the definition to a Hash

@return [Hash]

# File lib/opensearch/dsl/search/options.rb, line 75
def to_hash(options={})
  @hash
end