Introduce the new CONTAINS filter operator.
Matches the document that contains the specified parameter in the specified field:
dog.name CONTAINS kef
You can also negate this filter with a NOT:
(dog.name NOT CONTAINS echo) AND (NOT dog.name CONTAINS intel)
⚠️ Remember that the strings stored in the filter are lowercase and normalized (all accents are removed).
You can use it in any route that accepts a filter for the documents.
As I’m writing this usage page, here’s an exhaustive list:
GET /indexes/{index_uid}/searchPOST /indexes/{index_uid}/searchGET /indexes/{index_uid}/documentsGET /indexes/{index_uid}/documents/fetchPOST /indexes/{index_uid}/facet-searchGET /indexes/{index_uid}/similarPOST /indexes/{index_uid}/similarPOST /multi-search