Gravatar for

Question by nageshji, Dec 1, 2016 1:49 AM

Help required for query to filter with contains operator in coveo rest

I am trying for query to return results with contains operator.

I have issue with this contains operator. At present filters are working fine with =, != operator.

When I try with %keyword% for filtering contains operate, it doesn’t return any results.

Exapmle of query: http://localhost:8080/rest/search?q=sample&aq=(@fcomputedfield50563=%27%more%%27)

Could you please help me if anyone know how to filter for contains keyword for a field. (% operator)

1 Reply
Gravatar for

Answer by Jean-François L'Heureux, Dec 1, 2016 6:20 AM


The % character is not part of the Coveo query syntax. I believe you are new to Coveo. Please have a look at the Coveo query syntax articles on our documentation sites to understand what can be done:[Confluence%20-%20Developers,ohces70en,ohclouden]

To answer your question, the = operator is the "Contains Keyword" operator. It doesn't need any special character around the keyword. The == operator is the "Exact Match" operator. When possible, try to avoid wildcard queries are they are more complex and slower to execute.

I hope this helps,


Ask a question