Class: Eson::Search::Text

Inherits:
Object
  • Object
show all
Includes:
Query
Defined in:
lib/eson/search/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Query

included, #method_missing

Constructor Details

#initialize(options = {}) ⇒ Text

Returns a new instance of Text.



17
18
19
# File 'lib/eson/search/text.rb', line 17

def initialize(options = {})
  self.options = options
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Eson::Search::Query

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



15
16
17
# File 'lib/eson/search/text.rb', line 15

def options
  @options
end

Instance Method Details

#text { ... } ⇒ self

Generates a ‘text` query in a query context.

Yields:

  • the block containing further options and subqueries

Returns:

  • (self)

    the generated facet



13
# File 'lib/eson/search/text.rb', line 13

short_name :text