Gravatar for

Question by Simon, Mar 2, 2016 4:22 PM

Contains instead of exact match on multi-value facet fields

Hi - I have a facet sublayout in sitecore using the field "Age" which has multiple values like this:

All Ages;Young;Old

An item can have multiple values like "Young;Old"

Is it possible to modify the facet logic so when there is "Young;Old" just check if it contains Young or Old? instead of doing an exact match on both values.

1 Reply
Gravatar for

Answer by Simon, Mar 2, 2016 4:25 PM

  1. Did you configure the field used by your facet to be isMultiValue="true" (see Understanding the Coveo Search Provider's Configuration File)?
  2. Did you configure the facet as a facet using a multi-value field by checking the "Is multi-value field" option in the facet properties dialog (see Understanding the Coveo Facet Component's Properties)?

Both configurations are mandatory to have the facet work with individual values instead of the whole field values.

Ask a question