Class: Sensei::EmptyQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/sensei/query.rb

Instance Attribute Summary

Attributes inherited from Query

#options

Instance Method Summary collapse

Methods inherited from Query

construct, #get_boost, #initialize, #not_query?, q, #run, #to_sensei

Constructor Details

This class inherits a constructor from Sensei::Query

Instance Method Details

#&(x) ⇒ Object



155
156
157
# File 'lib/sensei/query.rb', line 155

def &(x)
  x
end

#*(x) ⇒ Object



167
168
169
# File 'lib/sensei/query.rb', line 167

def *(x)
  raise 'Should not call on an empty query'
end

#boost!(amt) ⇒ Object



175
176
177
# File 'lib/sensei/query.rb', line 175

def boost! amt
  raise 'Should not call on an empty query'
end

#must_notObject



171
172
173
# File 'lib/sensei/query.rb', line 171

def must_not
  raise 'Should not call on an empty query'
end

#to_hObject



179
180
181
# File 'lib/sensei/query.rb', line 179

def to_h
  {}
end

#|(x) ⇒ Object



159
160
161
# File 'lib/sensei/query.rb', line 159

def |(x)
  x
end

#~Object



163
164
165
# File 'lib/sensei/query.rb', line 163

def ~
  raise 'Should not call on an empty query'
end