We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723cdf3 commit 77b7297Copy full SHA for 77b7297
app/models/document.rb
@@ -12,7 +12,8 @@ class Document < ApplicationRecord
12
against: %i[title document],
13
using: {
14
tsearch: { prefix: true, dictionary: 'english',
15
- tsvector_column: 'search_vector' } # This option allows partial matches
+ tsvector_column: 'search_vector',
16
+ any_word: true } # This enables OR search - matches any word
17
}
18
19
has_neighbors :embedding
0 commit comments