Display Search Client specific search results and facets



  • Problem Statement

    How to limit the search results and the facet values specifically for a search client?

    Environment Production
    Reported product version Mamba'20
    Resolved in version Mamba'20
    Module Search Client

    Resolution

    To filter out an entire set of documents from search results without deleting them from a content source, there's an option Create Formula under the Search Client configurations. Follow the below steps to limit the search results for a search client:

    1. Navigate to Search Clients in the Admin panel and click on Edit icon for a Search client.
    2. Navigate to Content Source tab.
    3. Select the Content Type and Click Create Formula.
    4. Drag and drop the Content field for which you want to restrict the search results.
    5. Enable the Regex Toggle and add the Regex Filter Expression to filter the results.

    Please refer to this article for more details.

    CreateFormula.png

    Please follow the below steps to Exclude values from facets for a Search client:

    1. Navigate to Search Clients in the Admin panel and click on Edit icon for a Search client.
    2. Navigate to Content Source tab.
    3. Once a Content type is selected as facet, it will show an Exclude option to remove certain facet values. Click Exclude.
    4. Enter the Facet values (separated by commas) that you want to exclude, and click Save.

    Note: Don't put a space between a facet value and a comma. Please refer to this article for more details.

    Excludefacets.png

    ExcludeBucketValue.png


Log in to reply
 

Suggested Topics

  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1