Closed costa-jeremy closed 1 year ago
Hi @JeremyCst,
Thanks for the issue.
I have added the possibility to set a prefix in the PR #155. Can you give me feedback?
Hello @delyriand ! Thanks for the PR :)
I tested this and for me it is ok! thank you :)
Hello, By default the indexes are generated with the name: monsieurbiz_product_xxx which is the name of the key in the document configuration yaml file
So it's impossible to change $indexCode which is used to set a name for the document :
This îndexCode is used in the method "getIndexName" of ClientFactory.php :
I have already tried to decorate this file to add a custom prefix to the index name, but it seems impossible.
So, if we have multiple sites on the same elasticsearch server, it won't work because all the files will have the same name. Maybe it is possible to add a param on yaml file or anywhere to override this name ?
also, I think adding an index name that does not contain "monsieurbiz_product" will cause problems elsewhere, for example on AppendProductAttributeMappingSubscriber.php :
Thank you in advance.