Commit ffcb4dec3f970bbdb45d252935ff348c58935d66

Authored by Andrew Kane
1 parent eb78a633

Better handling of hash value - previously boost and rewrite could be set but th…

…is appears to have no effect since it's a filter
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick/query.rb
... ... @@ -963,7 +963,7 @@ module Searchkick
963 963 regex = regex.gsub(/(?<!\\)%/, ".*").gsub(/(?<!\\)_/, ".").gsub("\\%", "%").gsub("\\_", "_")
964 964 filters << {regexp: {field => {value: regex}}}
965 965 when :prefix
966   - filters << {prefix: {field => op_value}}
  966 + filters << {prefix: {field => {value: op_value}}}
967 967 when :regexp # support for regexp queries without using a regexp ruby object
968 968 filters << {regexp: {field => {value: op_value}}}
969 969 when :not, :_not # not equal
... ...