Skip to content

Commit

Permalink
Merge pull request #3014 from XuanYang-cn/patch-1
Browse files Browse the repository at this point in the history
Update use-partition-key.md
  • Loading branch information
AnthonyTsu1984 authored Feb 8, 2025
2 parents c982e8d + 5c02249 commit 3c78dfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/en/userGuide/search-query-get/use-partition-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ curl --request POST \​

### Create Filtering Condition​

When conducting ANN searches in a collection with the Partition Key feature enabled, you need to include a filtering expression involving the Partition Key in the search request. In the filtering expression, you can restrict the Partition Key value within a specific range so that Milvus restricts the search scope within the corresponding partitions.​
When conducting ANN searches in a collection with the Partition Key feature enabled, you need to include a filtering expression involving the Partition Key in the search request. In the filtering expression, you can restrict the Partition Key value within a specific range so that Milvus restricts the search scope within the corresponding partitions.​

When dealing with delete operations, It is advisable to include a filter expression that specifies a single partition key to achieve more efficient deletion. This approach limits the delete operation to a particular partition, reducing write amplification during compaction and conserving resources for compaction and indexing.

The following examples demonstrate Partition-Key-based filtering based on a specific Partition Key value and a set of Partition Key values.​

Expand Down

0 comments on commit 3c78dfb

Please sign in to comment.