How to Filter the Results based in the value on a field
I'm Querying the Coveo Rest API in my application and i'm trying to refine or filter the result set based on a value coming in one of the fields returned in the search result.
Example, I have a field named "fxxx" and it is coming in the search results when querying the Rest API. Now I want to filter the search result such that I want only those search results to be returned those are having a specific value in that field, like "fxxx" == some value.
So how can I query the Rest API and get the results having "fxxx" == some value. Please help me in forming that query.
This is the guide you are looking for: https://developers.coveo.com/display/public/SearchREST/Query+Parameters
There are several ways to filter but look at this part of the guide:
"aq: Advanced query expression This is the part of the query expression generated by code based on various rules.
Example: Selecting a facet value will cause an expression to be added to the advanced query expression. "
A facet is a UI compnonent which sends an under-the-blanket filter query, so you could use an Avanced query expression combined with your original query to filter down.