mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-01 00:48:32 +02:00
fix filtering example
This commit is contained in:
@@ -115,7 +115,7 @@ client.upsert(
|
||||
|
||||
## Retrieve data via filters
|
||||
|
||||
The access control setup is completed as you specify the criteria for data retrieval. When searching for vectors, you need to use a `query_filter` along with `group_id` to filter vectors for each user. Additionally specifying the `shard_key_selector` will look for data in the region of your choosing. In this case, your query is based on `user_1` and data dedicated to the Canadian region.
|
||||
The access control setup is completed as you specify the criteria for data retrieval. When searching for vectors, you need to use a `query_filter` along with `group_id` to filter vectors for each user.
|
||||
|
||||
```python
|
||||
client.search(
|
||||
@@ -128,12 +128,6 @@ client.search(
|
||||
value="user_1",
|
||||
),
|
||||
),
|
||||
models.FieldCondition(
|
||||
key="shard_key_selector",
|
||||
match=models.MatchValue(
|
||||
value="canada"
|
||||
,)
|
||||
),
|
||||
]
|
||||
),
|
||||
query_vector=[0.1, 0.1, 0.9],
|
||||
|
||||
Reference in New Issue
Block a user