Is it supposed to work out of the box? I see that the field names in the loop feed eg "“document-property-*” is not present in the Elastic ProductDocment? Is there a transform that am missing? To make Elastic play nice with the Loop54IndexingProviderPreProcessor?
When you set the Search Indexing to false then Loop54 feeds will not be created since they are created when you index products.
Loop54 is made for Products and not anything else.
For combining with Elastic Search then you will need to alter the AddOn logic and since it is a source code AddOn you can do anything desired.
For now there is a bug in it that we are working on so one needs to stay put for the next release soon.
I have tryed creating the class ProductLoopDocumentBuilder : IndexDocumentBuilderBase alongside the default MultilingualIndexDocumentBuilderBase.
But this class in not hit when rebuilding the elastic product index, do i need to register it somehow?
Edit:
What i need is some sort of (if possible) singleLanguage notification/event when a product is about to be reindex.
If i just add a hook in the default documentBuilder we will rebuild the loop files multiple times since the Multilingual IndexDocumentBuilderBase will trigger once per culture, and loops IIndexingProviderPreProcessor is once per varient.
I haven’t tested this but you may be able to create a decorator on ProductIndexDocumentBuilder and from the result of BuildIndexDocuments-method you create the document you need for Loop54 before returning the result to the caller.