Gravatar for

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

Advance Query filter


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

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

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

Thanks a lot… it works fine….

Ask a question