Commit 7a9b312a66976609a28300ec004dca26b32fe916
1 parent
f8823126
Exists in
master
and in
21 other branches
Fixed remaining tests
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
lib/searchkick/query.rb
... | ... | @@ -78,9 +78,9 @@ module Searchkick |
78 | 78 | fields: [field], |
79 | 79 | query: term, |
80 | 80 | use_dis_max: false, |
81 | - operator: operator, | |
82 | - cutoff_frequency: 0.001 | |
81 | + operator: operator | |
83 | 82 | } |
83 | + shared_options[:cutoff_frequency] = 0.001 unless operator == "and" | |
84 | 84 | queries.concat [ |
85 | 85 | {multi_match: shared_options.merge(boost: 10, analyzer: "searchkick_search")}, |
86 | 86 | {multi_match: shared_options.merge(boost: 10, analyzer: "searchkick_search2")} | ... | ... |
searchkick.gemspec
... | ... | @@ -19,7 +19,7 @@ Gem::Specification.new do |spec| |
19 | 19 | spec.require_paths = ["lib"] |
20 | 20 | |
21 | 21 | spec.add_dependency "activemodel" |
22 | - spec.add_dependency "elasticsearch", "~> 0.4.11" | |
22 | + spec.add_dependency "elasticsearch", ">= 1.0.0" | |
23 | 23 | spec.add_dependency "hashie" |
24 | 24 | |
25 | 25 | spec.add_development_dependency "bundler", "~> 1.3" | ... | ... |