5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 20:46:22 +00:00

también buscar por palabras similares

This commit is contained in:
f 2021-05-07 16:21:44 -03:00
parent ad871baca6
commit 4f2e602822

View file

@ -21,6 +21,9 @@ class IndexedPost < ApplicationRecord
tsearch: { tsearch: {
dictionary: IndexedPost.to_dictionary(locale: locale), dictionary: IndexedPost.to_dictionary(locale: locale),
tsvector_column: 'indexed_content' tsvector_column: 'indexed_content'
},
trigram: {
word_similarity: true
} }
} }
} }