Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions learn/filtering_and_sorting/filter_expression_reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,10 @@ curl \
"containsFilter": true
}'
```

This will also enable the [`STARTS WITH`](#starts-with) operator.
</Note>

### `STARTS WITH`

<NoticeTag type="experimental" label="experimental" />

`STARTS WITH` filters results whose values start with the specified string pattern.

The following expression returns all dairy products whose name start with `"kef"`:
Expand All @@ -216,21 +212,6 @@ dairy_products.name NOT STARTS WITH kef
NOT dairy_product.name STARTS WITH kef
```

<Note>
This is an experimental feature. Use the experimental features endpoint to activate it:

```sh
curl \
-X PATCH 'MEILISEARCH_URL/experimental-features/' \
-H 'Content-Type: application/json' \
--data-binary '{
"containsFilter": true
}'
```

This will also enable the [`CONTAINS`](#contains) operator.
</Note>

### `NOT`

The negation operator (`NOT`) selects all documents that do not satisfy a condition. It has higher precedence than `AND` and `OR`.
Expand Down