Gravatar for marnocha@rightpoint.com

Question by marnocha, Nov 9, 2018 9:38 PM

In Coveo for Sitecore, can you modify items in the index while processing another item to essentially "combine" metadata?

In Coveo for Sitecore, can you modify items in the index while processing another item to essentially "combine" metadata? Scenario is:

-Item A has metadata and references Item B

-I want to add metadata in the index from A to B

-I know a custom pipeline can modify A when you are indexing A, but can you modify other items in the index? Or what would be the approach to something like this?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Nov 12, 2018 10:57 AM

No you can't modify already indexed items without fully indexing them.

To add metadata from item A in item B, you must write computed index fields that use the link database to get the extra information from item A while indexing item B.

By using the Sitecore link database, you will be able to know which items are referencing item B.

Ask a question