Class: Stretchy::Clauses::BoostWhereClause
- Inherits:
-
BoostClause
- Object
- Base
- BoostClause
- Stretchy::Clauses::BoostWhereClause
- Defined in:
- lib/stretchy/clauses/boost_where_clause.rb
Constant Summary
Constants inherited from Base
Stretchy::Clauses::Base::DEFAULT_LIMIT, Stretchy::Clauses::Base::DEFAULT_OFFSET
Instance Attribute Summary
Attributes inherited from Base
#aggregate_builder, #boost_builder, #index_name, #inverse, #match_builder, #type, #where_builder
Instance Method Summary collapse
- #geo(*args) ⇒ Object
-
#initialize(base, options = {}) ⇒ BoostWhereClause
constructor
A new instance of BoostWhereClause.
- #match(*args) ⇒ Object
- #range(*args) ⇒ Object
- #where(*args) ⇒ Object
Methods inherited from BoostClause
#all, #boost_mode, #max, #near, #not, #random, #score_mode
Methods inherited from Base
#boost, #get_limit, #get_offset, #inverse?, #limit, #not, #offset, #query_results, #should, #to_search
Constructor Details
#initialize(base, options = {}) ⇒ BoostWhereClause
Returns a new instance of BoostWhereClause.
7 8 9 10 11 |
# File 'lib/stretchy/clauses/boost_where_clause.rb', line 7 def initialize(base, = {}) super(base, ) where_function(:init, ) self end |
Instance Method Details
#geo(*args) ⇒ Object
26 27 28 29 |
# File 'lib/stretchy/clauses/boost_where_clause.rb', line 26 def geo(*args) where_function(:geo, *args) Base.new(self) end |
#match(*args) ⇒ Object
17 18 19 |
# File 'lib/stretchy/clauses/boost_where_clause.rb', line 17 def match(*args) MatchClause.new(self, *args) end |
#range(*args) ⇒ Object
21 22 23 24 |
# File 'lib/stretchy/clauses/boost_where_clause.rb', line 21 def range(*args) where_function(:range, *args) Base.new(self) end |
#where(*args) ⇒ Object
13 14 15 |
# File 'lib/stretchy/clauses/boost_where_clause.rb', line 13 def where(*args) WhereClause.new(self, *args) end |