Class: Eson::Search::QueryFacet

Inherits:
Object
  • Object
show all
Includes:
Facet, Queries, QueryMethods
Defined in:
lib/eson/search/query_facet.rb

Instance Attribute Summary

Attributes included from Queries

#queries

Attributes included from Facet

#args, #scope_name

Instance Method Summary collapse

Methods included from Queries

#queries?, register

Methods included from Facet

included, #method_missing, #param, #scope

Dynamic Method Handling

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

Instance Method Details

#query { ... } ⇒ self

Generates a ‘query` facet in a facets context.

Yields:

  • the block describing further options

Returns:

  • (self)

    the generated facet



9
# File 'lib/eson/search/query_facet.rb', line 9

short_name :query

#to_query_hashObject



11
12
13
# File 'lib/eson/search/query_facet.rb', line 11

def to_query_hash
  {:query => queries.to_query_hash}
end