I18n - Multilingual Search with Symfony SearchBundle

Hi, I’m currently testing Algolia with the SearchBundle and would have liked to build one index per locale.

AFAIK the SearchBundle directly constructs indexes based on Entity propery names (i.e. Product::name). But my localisation keys are on a separate table where I can find them by Object Class (i.e. Product::class), Object ID (i.e. 10), Object Property (i.e. name), Locale (i.e. “en”).

So if I want to build my index I have to fetch the proper translation for each indexed property. What’s the best way to do that?


Upping this. On the issues page of the bundle it’s recommended to post there if not a bug. :slight_smile: