Skip to content

Commit

Permalink
DIsable fuzzy search
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed May 21, 2024
1 parent 6f8abcc commit 9e110ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/concerns/has_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def build_should(name, value)
bool: {
should: [
{ match: { "#{name}.word_start": { query: value, boost: boost * 10, operator: 'and', analyzer: 'searchkick_word_search' } } },
{ match: { "#{name}.word_start": { query: value, boost:, operator: 'and', analyzer: 'searchkick_word_search', fuzziness: 1,
prefix_length: 0, max_expansions: 3, fuzzy_transpositions: true } } }
# { match: { "#{name}.word_start": { query: value, boost:, operator: 'and', analyzer: 'searchkick_word_search', fuzziness: 1,
# prefix_length: 0, max_expansions: 3, fuzzy_transpositions: true } } }
]
}
},
Expand Down

0 comments on commit 9e110ed

Please sign in to comment.