You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.
category = Category.find_by_fuzzy_name('rouge', :limit => 1).first
=> gives me "rose" as result
What I need to do:
category = Category.find_by_fuzzy_name_fr('rouge', :limit => 1).first
=> gives me "rouge" as result
So I need to set the language in the search method to catch the right result.
The problem is I want to make the search to work without knowing the language.
Is-this possible ?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I have a bad fuzzy result if I use a model with international fields.
Model:
class Category < ActiveRecord::Base
fuzzily_searchable :name_fr, :name_en, :name_de, :name_es, :name_it
end
Fill the trigrams:
Fuzzily search:
category = Category.find_by_fuzzy_name('rouge', :limit => 1).first
=> gives me "rose" as result
What I need to do:
category = Category.find_by_fuzzy_name_fr('rouge', :limit => 1).first
=> gives me "rouge" as result
So I need to set the language in the search method to catch the right result.
The problem is I want to make the search to work without knowing the language.
Is-this possible ?
The text was updated successfully, but these errors were encountered: