-
Hi, We are converting a classic
This was achieved by adding an q: hello
aq: (@filetype<>pdf)
enableQuerySyntax: false
... Is there a way to achieve this exact requirement using Ameet |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
From what we have gathered so far, there's two approaches / thought processes:
Which approach would the coveo team suggest and why? Any code examples / samples would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hi Ameet,
I recommend moving the filtering logic to your pipeline instead of defining the
aq
andenableQuerySyntax
in the UI.Moving logic to the pipeline will:
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?
…