Skip to content

Commit ffb1d82

Browse files
committed
Vectorize: Update Range Query docs to draw attention to prefix searching
1 parent fc08e1d commit ffb1d82

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/content/docs/vectorize/reference/metadata-filtering.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ An optional `filter` property on `query()` method specifies metadata filters:
4949
- For `$eq` and `$ne`, `filter` object non-nested values can be `string`, `number`, `boolean`, or `null` values.
5050
- For `$in` and `$nin`, `filter` object values can be arrays of `string`, `number`, `boolean`, or `null` values.
5151
- Upper-bound range queries (i.e. `$lt` and `$lte`) can be combined with lower-bound range queries (i.e. `$gt` and `$gte`) within the same filter. Other combinations are not allowed.
52-
- For range queries (i.e. `$lt`, `$lte`, `$gt`, `$gte`), `filter` object non-nested values can be `string` or `number` values. Strings are ordered lexicographically.
53-
- Range queries involving a large number of vectors (~10M and above) may experience reduced accuracy.
52+
- For range queries (i.e. `$lt`, `$lte`, `$gt`, `$gte`), `filter` object non-nested values can be `string` or `number` values. Strings are ordered lexicographically.
53+
- Range queries involving a large number of vectors (~10M and above) may experience reduced accuracy.
5454

5555
### Namespace versus metadata filtering
5656

@@ -92,7 +92,9 @@ Both [namespaces](/vectorize/best-practices/insert-vectors/#namespaces) and meta
9292
```
9393

9494
#### Range query involving strings
95-
Range queries can be used to implement prefix searching on string metadata fields.
95+
96+
Range queries can be used to implement **prefix searching** on string metadata fields. This also like a **starts_with** filter.
97+
9698
For example, the following filter matches all values starting with "net":
9799

98100
```json

0 commit comments

Comments
 (0)