Skip to content

How does this gem handle i18n? #10

@sintro

Description

@sintro

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

  pg_search_scope :search,
                  associated_against: {
                      :translations => [:title, :body]
                  }

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions