Gravatar for ssartell@rightpoint.com

Question by ssartell, Jan 31, 2016 12:38 PM

Multi-value facet with lookup field?

How does LookupField work if I have a multi-value facet? I'd like to facet over IDs but display the names. At the moment I'm just using names, but I've run into problems where the content author renames something and it breaks the search results.

2 Replies
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Feb 1, 2016 2:56 AM

You cannot use lookup fields for multi facet values, as the index wouldn't know which value to map to which. But why not keep on faceting directly on the name instead?

Gravatar for ssartell@rightpoint.com

Comment by ssartell, Feb 1, 2016 11:14 PM

We're currently generating links to the search results page with a pre-selected facet. The problem is that if the name of the (sitecore) item changes, the link will be different but the items we're searching on won't get crawled unless we force them. This leaves them out of sync so you end up with no results.

Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Feb 2, 2016 8:37 AM

I think the IndexReferrerItemsOnUpdate element of the Coveo.SearchProvider.config file would solve your problem (see Understanding the Coveo Search Provider's Configuration File).

Setting it to true will re-index all the items that references the item with a modified name when this one will be indexed.

Can you give it a try?

Gravatar for ssartell@rightpoint.com

Comment by ssartell, Feb 2, 2016 2:33 PM

I enabled this setting, but it does not seem to work. When I publish an item that has referrers according to the links database, that item is still the only thing getting indexed. No other activity shows up in the log.

Gravatar for ssartell@rightpoint.com

Comment by ssartell, Feb 8, 2016 9:54 AM

Any guidance or suggestions on how to get IndexReferrerItemsOnUpdate to work? I have it set to true, but when I publish and item, the referrers definitely don't show up in the index activity log.

Ask a question