Skip to content

Commit

Permalink
Update use-partition-key.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyTsu1984 authored Feb 8, 2025
1 parent a2addcd commit 5c02249
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.​ For more efficient deletion, it's recommended to include a filter expression specifying a single partition key. This limits the delete operation to a specific partition, reducing compaction write amplification and conserving compaction and indexing resources.
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 5c02249

Please sign in to comment.