| 程序包 | 说明 |
|---|---|
| io.milvus.param.dml |
| 限定符和类型 | 方法和说明 |
|---|---|
SearchParam.Builder |
SearchParam.Builder.addOutField(@NonNull String fieldName)
Specifies an output field (Optional).
|
SearchParam.Builder |
SearchParam.Builder.addPartitionName(@NonNull String partitionName)
Adds a partition to specify search scope (Optional).
|
static SearchParam.Builder |
SearchParam.newBuilder() |
SearchParam.Builder |
SearchParam.Builder.withCollectionName(@NonNull String collectionName)
Sets the collection name.
|
SearchParam.Builder |
SearchParam.Builder.withConsistencyLevel(ConsistencyLevelEnum consistencyLevel)
ConsistencyLevel of consistency level.
|
SearchParam.Builder |
SearchParam.Builder.withExpr(@NonNull String expr)
Sets expression to filter out entities before searching (Optional).
|
SearchParam.Builder |
SearchParam.Builder.withGracefulTime(Long gracefulTime)
Graceful time for BOUNDED Consistency Level
|
SearchParam.Builder |
SearchParam.Builder.withGuaranteeTimestamp(@NonNull Long ts)
Instructs server to see insert/delete operations performed before a provided timestamp.
|
SearchParam.Builder |
SearchParam.Builder.withMetricType(@NonNull MetricType metricType)
Sets metric type of ANN searching.
|
SearchParam.Builder |
SearchParam.Builder.withOutFields(@NonNull List<String> outFields)
Specifies output fields (Optional).
|
SearchParam.Builder |
SearchParam.Builder.withParams(@NonNull String params)
Sets the search parameters specific to the index type.
|
SearchParam.Builder |
SearchParam.Builder.withPartitionNames(@NonNull List<String> partitionNames)
Sets partition names list to specify search scope (Optional).
|
SearchParam.Builder |
SearchParam.Builder.withRoundDecimal(@NonNull Integer decimal)
Specifies the decimal place of the returned results.
|
SearchParam.Builder |
SearchParam.Builder.withTopK(@NonNull Integer topK)
Sets topK value of ANN search.
|
SearchParam.Builder |
SearchParam.Builder.withTravelTimestamp(@NonNull Long ts)
Specify an absolute timestamp in a search to get results based on a data view at a specified point in time.
|
SearchParam.Builder |
SearchParam.Builder.withVectorFieldName(@NonNull String vectorFieldName)
Sets target vector field by name.
|
SearchParam.Builder |
SearchParam.Builder.withVectors(@NonNull List<?> vectors)
Sets the target vectors.
|
Copyright © 2023. All rights reserved.