Lets start with the mysql database that we have, we have tables like these:
-
profiles
-
companies
-
reviews
Each of these tables has an i18n table for translations:
-
profile_i18ns
-
company_i18ns
-
review_i18ns
Each of the i18n tables has a sub set of fields of the normal table that
need to be translatable. So for profiles the table looks like:
id | profile_id | language_id | field_name | other_field_name | ...
We have different domains where each domain has a primary language plus a
set of additional languages it supports. This is relevant for the search
queries we need to do now.
So for example if I'm going to search for a French word on a domain that
has English as primary language, we want to search by the French word but
show results in English. A use case here is that you know only the French
name but not the English one. In a relational db I would simply join the
other language but I have no idea how to do this the best in elastic search.
One of the problems is now how to build the indexes and types to get this
task done.
We also need to be able to search across multiple types of data, like
profiles, companies, reviews, jobs and a few more. Most, but not all of
them are translatable.
The problems we're facing now as elastic search beginners is how to build
the index (or indices) and types the best to be fast but also good to
search by the given requirements.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.