Gravatar for sathis.k.durairaj@accenture.com

Question by Sathis, Aug 24, 2015 7:32 AM

Advance Query filter

Hi,

We are using .net front end REST API to get the results from index server. I am using advance query parameter to filter the records based on the custom field values. The advance query parameter filter the record that don't have particular custom filter. I want to filter the record like if filed is there then apply the filter, otherwise include that document into results set regardless the filter value.

How to frame the query to achieve above scenario?

1 Reply
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Aug 24, 2015 8:01 AM

You can use an expression that looks like @foo==value OR NOT @foo

Gravatar for sathis.k.durairaj@accenture.com

Comment by Sathis, Aug 24, 2015 8:47 AM

Thanks a lot… it works fine….

Ask a question