3

I am wondering what is the best approach to index translations with Laravel Scout.

In my current project I have a different index for each language (Ex: main-en/pages; main-fr/pages) so it is easy to search.

With Laravel Scout each model is synchronized with an index and the only way I see is to index translations as a "nested relation" and I am not sure how to configure mapping (analyzers etc.) to query a specific language

Dorin Niscu
  • 721
  • 1
  • 9
  • 26
  • 1
    I believe my answer here can be useful: https://stackoverflow.com/a/44154065/1001125 – Julien Bourdeau May 24 '17 at 14:15
  • Possible duplicate of [Multi-language indexes with Laravel Scout and Algolia](https://stackoverflow.com/questions/44071033/multi-language-indexes-with-laravel-scout-and-algolia) – Haroen Viaene Oct 18 '17 at 23:46

0 Answers0