Class: Sunspot::Query::Connective::Conjunction

Inherits:
Abstract
  • Object
show all
Defined in:
lib/sunspot/query/connective.rb

Overview

Conjunctions combine their components with an AND operator.

Direct Known Subclasses

BoostQuery, QueryFacet, Scope

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Abstract

#add_component, #add_disjunction, #add_negated_restriction, #add_negated_shorthand_restriction, #add_restriction, #add_shorthand_restriction, #initialize, #negate, #negated?, #to_boolean_phrase

Methods included from Filter

#tag, #to_filter_query

Constructor Details

This class inherits a constructor from Sunspot::Query::Connective::Abstract

Class Method Details

.inverseObject



178
179
180
# File 'lib/sunspot/query/connective.rb', line 178

def inverse
  Disjunction
end

Instance Method Details

#add_conjunctionObject



183
184
185
# File 'lib/sunspot/query/connective.rb', line 183

def add_conjunction
  self
end