Customizing Coveo for Sitecore search to add virtual language versions
I need to add a virtual language versions(which does not actually in sitecore) into coveo index when indexing an item. i.e. for example, if I create a new item in "en" language, when it is indexed to coveo, coveo should also have items in the index for other languages like "de-de", "en-us", etc (without creating those items in sitecore)
I tried to add a custom process into
Have anybody done this or any idea ?
Thank you in advance.
First of all, i would probably use a *CoveoItemPostProcessingPipeline which will make more sense for you're trying to achieve. Then, if you take a look at the 'CoveoPostItemProcessingPipelineArgs', you'll see that there's a CoveoItem and a list of OutputCoveoItems.
I would simply duplicate the CoveoItem, change its language for instance, and then add the duplicate in the list of OutputCoveoItems. These output items are the ones that will get indexed at the end.
You can learn more about this here : https://developers.coveo.com/display/public/SC201412/Using+the+Coveo+Pipelines
Does it make sense?