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
It is common problem for different search implementations to do multilanguage searching, or to support correct indexing of associated tables (so, the Globalize implementation of multilanguage system will be the problem).
Refinery uses Globalize to implement i18n, and I am interested, how does this gem will handle the searching among associated 'page_translations' table, or 'post_translations'.
For example, to make the searching using 'pg_search' gem, one have to make something like
And sadly, when using associated_against option (to search in associated models, which translations table is) there is no indices support (so in future searching can be a big hole in security of website).
The text was updated successfully, but these errors were encountered:
This gem feeds data from the Ruby models into Elasticsearch by translating them to JSON. This happens in the decorators for each model. That way this gem is different eg from pg_search which helps building SQL queries.
Generally, indexing different locales shouldn't be a problem with Elasticsearch. I haven't tried it though and I'm not sure how to handle the available locales during indexing and search. How is this supposed to happen?
It is common problem for different search implementations to do multilanguage searching, or to support correct indexing of associated tables (so, the Globalize implementation of multilanguage system will be the problem).
Refinery uses Globalize to implement i18n, and I am interested, how does this gem will handle the searching among associated 'page_translations' table, or 'post_translations'.
For example, to make the searching using 'pg_search' gem, one have to make something like
And sadly, when using
associated_against
option (to search in associated models, whichtranslations
table is) there is no indices support (so in future searching can be a big hole in security of website).The text was updated successfully, but these errors were encountered: