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}/search
POST /indexes/{index_uid}/search
GET /indexes/{index_uid}/documents
GET /indexes/{index_uid}/documents/fetch
POST /indexes/{index_uid}/facet-search
GET /indexes/{index_uid}/similar
POST /indexes/{index_uid}/similar
POST /multi-search