-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Algolia with globalize gem #283
Comments
+1 Is there any progress here. What is the recomended way for indexing multiple indices per locale? |
+1 also interested in this |
@redox Is there a way to perform globalized searches with Algolia? |
Hey @jonhue @casiodk @severin; sorry for being late here... I've never used the globalize gem so I don't have a lot of insights; but I assume having something like the following should work: algoliasearch do
[:en, :fr, :de].each do |lang|
add_attribute "title_#{lang}" do
Globalize.with_locale(lang) do
title
end
end
end
end What do you think? |
The best way to handle this in my opinion is to have one index per locale, but the syntax is clearly too complicated currently, see #307 |
I am using the globalize gem in my app, to translate a couple of columns in my database tables.
When Algolia indexes them, it only pics up the English translation.
That leads to a problem, when a user uses another language and tries to search for some records.
Is Algolia able to handle records with attributes, that have multiple translations - and then utilize one of them when a search occurs?
The text was updated successfully, but these errors were encountered: