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)
% 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: https://search.coveo.com/#q=query%20syntax&sort=relevancy&f:sourceFacet=[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,