Gravatar for bberriz@lifeextension.com

Question by Ben, Aug 21, 2015 3:01 PM

Coveo for Sitecore - Get Index Name in ConfigurableComputedField

We have a custom index setup on Web. When we index an item using re-index tree, it fires of both the Coveowebindex and our custom index. How can we determine which index is processing when we are in a custom ConfigurableComputedField?

1 Reply
Gravatar for slangevin@coveo.com

Answer by Simon, Aug 21, 2015 3:08 PM

There are several post on declaring multiple indexes on a single database and most of them show that it is not a really good idea.

See this one for example: https://answers.coveo.com/questions/3290/setting-up-indexes-for-multi-site-sitecore-solution

So avoid using the root and use interface filtering, this way you won't have to micro-manage at the indexing level.

Regards,
Simon

Gravatar for bberriz@lifeextension.com

Comment by Ben, Aug 21, 2015 3:24 PM

Thanks, that is good knowledge, and we can address that later, but for the time being, is there a way to find the index name during processing?

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Aug 21, 2015 3:30 PM

Unfortunately, I don't think this information is available in a computed field code. Can you describe what you try to achieve in your computed field. Maybe there's another way to resolve your problem.

Gravatar for bberriz@lifeextension.com

Comment by Ben, Aug 21, 2015 4:03 PM

We'll just go with separating the indexes, thank you.

Ask a question