Gravatar for achmedrauff.abdulrahim@3ds.com

Question by Achmed Rauff, Feb 25, 2015 4:00 AM

Disabling AND/OR Facet feature

I have searched high and low in the administrator help and could not find a thing about disabling the AND/OR facet feature. But this feature is covered in the user help… http://onlinehelp.coveo.com/en/ces/7.0/user/refiningsearchresultsusingfacets.htm#ANDcondition

Can anyone help me in figuring this out?

2 Replies
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Feb 25, 2015 1:42 PM

In the .Net Front-End, the mode selection icon is by default displayed when the facet field is a split group by field or a tag field. Unfortunately, there is no way to configure this in the Interface Editor.

One way to remove the all those icons from an interface would be to modify the CSS class it uses to add a display: none property. The class is .CesFacetHeaderSelMode. You can alter it from the Interface editor (see Modifying Search Interface CSS Styles).

Another way to remove the icon may be by creating a class that inherits the FieldValueFacet class and override the AreSelectionModesAvailable property to always return false or override the RenderSelectionModeIcon method to do nothing instead of rendering the icon. Then, configure your facet in the Interface Editor to use your class instead of the default class by specifying the Assembly and Class settings (see Adding or Customizing a Facet).

A third way to configure this may be to remove the facets from the Interface Editor and add them manually in the search interface skin. Then, you will be able to specify AreSelectionModesAvailable="false" in your facets attributes.

Gravatar for achmedrauff.abdulrahim@3ds.com

Comment by Achmed Rauff, Mar 1, 2015 11:11 PM

What and How do we know if its a split group by field or a tag field? If I cant disable it then it would be good to know when this feature appears.

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Mar 2, 2015 9:26 AM

"Split group by field" is "Multi-value facet" in a fields set (see Adding a Facet Field).

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Mar 2, 2015 9:26 AM

Tag fields cannot be created from the Administration Tool. They are created by code most of the time. Modules like the Text Analytics Module create tag fields to update information on documents. Tag fields are identified in the Index Browser (see Reviewing Document Details from the Index Browser).

Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Feb 25, 2015 4:10 AM

Have a look at this option: https://developers.coveo.com/display/JsSearch/Facet+Component#FacetComponent-allowTogglingOperator

Ask a question