Gravatar for

Question by Ian Etherington, Aug 6, 2015 7:11 AM

Sitecore Save Search


is it possible to save a set of facet choices when using Coveo for Sitecore? I cant seem to find it anywhere, but it is available in the Coveo .Net implementation (non-sitecore)


1 Reply
Gravatar for

Answer by Jean-François L'Heureux, Aug 6, 2015 10:06 AM


The save filter/search feature of the Coveo .Net Front-End is not implemented the same way in the JS UI (which Coveo for Sitecore uses). A few options are available for you:

  1. The URL of the search page always contains the state of the page. It can be bookmarked/shared to keep the facet choices and query.
  2. There is a Settings component in the JS UI library that you can include in your page to display the ShareQuery component and/or the PreferencesPanel component. The PreferencesPanel component has 2 sub components: ResultsPreferences and ResultsFiltersPreferences. The ResultsFiltersPreferences component may interest you as it allows users to create their own customized filters to apply to their search.
  3. The Facet component has also an enableSettingsFacetState boolean property that adds an option in the facet's menu to save its state in the browser localStorage.

If you choose options 2 or 3, avoid modifying the Coveo ascx files directly as you will loose your modifications at the next upgrade of Coveo for Sitecore. Instead, do a copy of the files you want to modify in another folder and create your own sublayout/rendering that uses your custom ascx files (see Duplicating the Coveo Search Component for an example).

Ask a question