Adding Facets to a Search Page Using the Interface Editor

You can add facets to your search pages, which allows your users to filter your content based on the values of your specific fields.

To add facets to a search page using the Interface Editor

  1. Access the Interface Editor for the search page you wish to modify (see Accessing the Coveo Interface Editor).

  2. From the menu on the right, drag-and-drop the Facet component to the left-most column of your search page.

    interfaceeditor-add-facet

  3. In the Facet Creator window:

    1. Under Title, enter a name for your facet. This is the name that is visible to end users, displayed at the top of the facet.

    2. Under Field, select the field to use to determine the possible values in your facet.

      To know which field to use, you can inspect your indexed items using the Content Browser of your Coveo Cloud organization (see Content Browser - Page).

      When using the Coveo for Salesforce Free edition, you may have to change the query in the Content Browser to access all your items (see Understanding Coveo for Salesforce Objects and Fields).

    3. Select OK to create your facet.

      The facet configuration panel should now be opened.

  4. (Optional) In the facet configuration panel, customize the default options:

    • You can navigate the different option sections by using the menu on the left.

      interfaceeditor-facet-options

    • To know more about the available options, hover over the tooltip icon (interfaceeditor-tooltip-icon) next to the option. You can also consult the Coveo JavaScript Search Framework reference documentation (see Coveo Facet Component).

  5. After having customized the options, select Save.

    If you are satisfied with the default options and do not want to modify them, simply click outside of the panel to exit it.

What’s Next?

Continue editing your search page using the Interface Editor (see JavaScript Search Interface Editor).