Class: Eson::Search::Filtered

Inherits:
Object
  • Object
show all
Includes:
Filters, Queries, Query
Defined in:
lib/eson/search/filtered.rb

Instance Attribute Summary collapse

Attributes included from Queries

#queries

Attributes included from Filters

#filters

Instance Method Summary collapse

Methods included from Query

included, #method_missing

Methods included from Queries

#queries?, register, #to_query_hash

Methods included from Filters

#filters?, register, #to_query_hash

Dynamic Method Handling

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

Instance Attribute Details

#typeObject

Returns the value of attribute type.



12
13
14
# File 'lib/eson/search/filtered.rb', line 12

def type
  @type
end

Instance Method Details

#filtered { ... } ⇒ self

Generates a ‘filtered` query in a query context.

Yields:

  • the block containing further options and subqueries

Returns:

  • (self)

    the generated facet



10
# File 'lib/eson/search/filtered.rb', line 10

short_name :filtered