class Arelastic::Builders::Queries
Constants
- MACROS_TO_ARELASTIC
Public Class Methods
[](field)
click to toggle source
# File lib/arelastic/builders/queries.rb, line 39 def [](field) new(field) end
Public Instance Methods
gt(other)
click to toggle source
# File lib/arelastic/builders/queries.rb, line 77 def gt other range 'gt' => other end
gte(other)
click to toggle source
# File lib/arelastic/builders/queries.rb, line 73 def gte other range 'gte' => other end
in(other, options = {})
click to toggle source
# File lib/arelastic/builders/queries.rb, line 56 def in other, options = {} case other when Range if other.exclude_end? range 'gte' => other.begin, 'lt' => other.end else range 'gte' => other.begin, 'lte' => other.end end else terms other, options end end
lt(other)
click to toggle source
# File lib/arelastic/builders/queries.rb, line 85 def lt other range 'lt' => other end
lte(other)
click to toggle source
# File lib/arelastic/builders/queries.rb, line 81 def lte other range 'lte' => other end
missing(options = {})
click to toggle source
# File lib/arelastic/builders/queries.rb, line 69 def missing(options = {}) exists(options).negate end