fix: added the threshold for the multisearch

This commit is contained in:
Tejaswini Chile 2022-12-16 18:43:24 +05:30
parent 9681827776
commit 87eb798d7c

View file

@ -5,7 +5,8 @@ module MultiSearchableHelpers
PgSearch.multisearch_options = {
using: {
trigram: {
word_similarity: true
word_similarity: true,
threshold: 0.6
},
tsearch: { any_word: true }
}