module DaedalSL::QueryHelpers
Public Instance Methods
and_filter(options={}, &block)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 6 def and_filter(options={}, &block) DaedalSL::AndFilter.build(self, options, &block) end
bool_filter(options={}, &block)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 10 def bool_filter(options={}, &block) DaedalSL::BoolFilter.build(self, options, &block) end
bool_query(options={}, &block)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 14 def bool_query(options={}, &block) DaedalSL::BoolQuery.build(self, options, &block) end
constant_score(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 18 def constant_score(options) ConstantScoreQuery.new(options) end
dis_max(options={}, &block)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 22 def dis_max(options={}, &block) DaedalSL::DisMaxQuery.build(self, options, &block) end
exists_filter(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 26 def exists_filter(options) ExistsFilter.new(options) end
filtered_query(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 30 def filtered_query(options) FilteredQuery.new(options) end
fuzzy(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 34 def fuzzy(options) FuzzyQuery.new(options) end
geo_distance_filter(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 38 def geo_distance_filter(options) GeoDistanceFilter.new(options) end
match(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 42 def match(options) MatchQuery.new(options) end
match_all()
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 46 def match_all MatchAllQuery.new end
multi_match(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 50 def multi_match(options) MultiMatchQuery.new(options) end
nested_bool_filter(options={}, &block)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 58 def nested_bool_filter(options={}, &block) DaedalSL::NestedBoolFilter.build(self, options, &block) end
nested_bool_query(options={}, &block)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 54 def nested_bool_query(options={}, &block) DaedalSL::NestedBoolQuery.build(self, options, &block) end
nested_dis_max_query(options={}, &block)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 62 def nested_dis_max_query(options={}, &block) DaedalSL::NestedDisMaxQuery.build(self, options, &block) end
or_filter(options={}, &block)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 66 def or_filter(options={}, &block) DaedalSL::OrFilter.build(self, options, &block) end
prefix(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 70 def prefix(options) PrefixQuery.new(options) end
query_string(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 74 def query_string(options) QueryStringQuery.new(options) end
range_filter(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 78 def range_filter(options) RangeFilter.new(options) end
term_filter(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 82 def term_filter(options) TermFilter.new(options) end
terms_filter(options)
click to toggle source
# File lib/daedal-sl/query_helpers.rb, line 86 def terms_filter(options) TermsFilter.new(options) end