diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-11-24 12:24:24 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-11-27 11:29:40 +0100 |
commit | da42dfb3cf4a2fb0cdcc1a3b41438516a0bed0e5 (patch) | |
tree | 1dc5014e27ce049e47e8670b83b79e0c49bb96b9 /app/models/note.rb | |
parent | d4eea275310867eccc927d0e92a1d19a165f0668 (diff) | |
download | gitlab-ce-dm-search-pattern.tar.gz |
Use fuzzy search with minimum length of 3 characters where appropriatedm-search-pattern
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index d2aa8392229..340fe087f82 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -170,7 +170,7 @@ class Note < ActiveRecord::Base end def search(query) - where(arel_table[:note].matches(to_pattern(query))) + fuzzy_search(query, [:note]) end end |