From 4f2e602822bce8db394265c75b5e51abb195db11 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 7 May 2021 16:21:44 -0300 Subject: [PATCH] =?UTF-8?q?tambi=C3=A9n=20buscar=20por=20palabras=20simila?= =?UTF-8?q?res?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/indexed_post.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/indexed_post.rb b/app/models/indexed_post.rb index 7bf1ec7a..ede5b539 100644 --- a/app/models/indexed_post.rb +++ b/app/models/indexed_post.rb @@ -21,6 +21,9 @@ class IndexedPost < ApplicationRecord tsearch: { dictionary: IndexedPost.to_dictionary(locale: locale), tsvector_column: 'indexed_content' + }, + trigram: { + word_similarity: true } } }