mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:16:22 +00:00
también buscar por palabras similares
This commit is contained in:
parent
ad871baca6
commit
4f2e602822
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue