Class: Stretchy::Clauses::BoostWhereClause

Inherits:
BoostClause show all
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

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, options = {})
  super(base, options)
  where_function(:init, options)
  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