Class: Sunspot::Query::QueryFacetRow

Inherits:
Connective::Conjunction show all
Defined in:
lib/sunspot/query/query_facet_row.rb

Overview

QueryFacetRow objects encapsulate restrictions for a particular QueryFacet. They also contain a label attribute, which is used as the value for the search result’s corresponding facet row object.

See Query::Scope for the API provided.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Connective::Conjunction

inverse

Methods inherited from Connective::Abstract

#add_component, #negate, #negated?, #to_boolean_phrase, #to_params

Methods inherited from Scope

#add_conjunction, #add_disjunction, #add_negated_restriction, #add_negated_shorthand_restriction, #add_restriction, #add_shorthand_restriction, #dynamic_query, #exclude_instance

Constructor Details

#initialize(label, setup) ⇒ QueryFacetRow

:nodoc:



13
14
15
16
# File 'lib/sunspot/query/query_facet_row.rb', line 13

def initialize(label, setup) #:nodoc:
  super(setup)
  @label = label
end

Instance Attribute Details

#labelObject (readonly)

:nodoc:



11
12
13
# File 'lib/sunspot/query/query_facet_row.rb', line 11

def label
  @label
end