Skip to content

How to automatically exclude certain facet values in search? #480

Answered by y-lakhdar
akaustav asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Ameet,

I recommend moving the filtering logic to your pipeline instead of defining the aq and enableQuerySyntax in the UI.

Moving logic to the pipeline will:

  1. help you remove complexity from your front-end code
  2. allow you to manipulate your search page results without having to re-deploy/edit your search page

As for the PDF exclusion, the suggestion depends on the intention.
If you don’t want to expose PDFs in your search page, I recommend excluding them during the indexation.
However, if you only want to filter them out from the result list when the user has entered a query, then I recommend using a pipeline condition as shown in the second screenshot.

Does that answer your question?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@akaustav
Comment options

@akaustav
Comment options

@y-lakhdar
Comment options

@akaustav
Comment options

Answer selected by akaustav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants