Best practice for multilang website with multiple database tables


(Andre Rinas) #1

Hi there,
I am new to the new elasticsearch version. My first try with elasticsearch was with version 2.x. Now I want to have a search for my multilang website with many tables I want to index. My idea was to create an index per language and add a type for each record type in my database. With version 6, it is saying, that this is not the best practice. Now my question is, what is the best practice?

The search should work like this:
I am on the page and search something, I only want results in my language from all "tables".

The new idea was that I create as many indexes as I have records and languages, but I thinkt thats overkill.
For example user_en, user_de, product_en, product_de and so on.

Maybe some of you can give me an good advice how to handle things like this.

Best regard


(David Pilato) #2

Did you see https://www.elastic.co/guide/en/elasticsearch/guide/current/language-intro.html?

It contains important informations about this.
That might help.


(Andre Rinas) #3

Thanks for the hint, I've not seen that. I will come back here, if any questions are left.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.