Skip to content

Instantly share code, notes, and snippets.

View jkostolansky's full-sized avatar

Juraj Kostolanský jkostolansky

View GitHub Profile
@jkostolansky
jkostolansky / chewy.rb
Last active October 6, 2022 19:31
Chewy multi-index search
Chewy.filter :chewy_ngram,
type: 'edge_ngram',
min_gram: 1,
max_gram: 50
Chewy.analyzer :chewy_fulltext_search,
type: 'custom',
tokenizer: 'standard',
filter: %w[lowercase asciifolding chewy_ngram]