diff --git a/milvus/types/Data.ts b/milvus/types/Data.ts index 1f7c26df..01ec069c 100644 --- a/milvus/types/Data.ts +++ b/milvus/types/Data.ts @@ -300,6 +300,7 @@ export interface SearchParam { group_by_field?: string; // group by field group_size?: number; // group size strict_group_size?: boolean; // if strict group size + hints?: string; // hints to improve milvus search performance } // old search api parameter type, deprecated @@ -352,6 +353,7 @@ export interface SearchSimpleReq extends collectionNameReq { group_by_field?: string; // group by field group_size?: number; // group size strict_group_size?: boolean; // if strict group size + hints?: string; // hints to improve milvus search performance round_decimal?: number; // round decimal transformers?: OutputTransformers; // provide custom data transformer for specific data type like bf16 or f16 vectors } diff --git a/milvus/utils/Format.ts b/milvus/utils/Format.ts index abe5680c..7f05d09a 100644 --- a/milvus/utils/Format.ts +++ b/milvus/utils/Format.ts @@ -688,6 +688,9 @@ export const buildSearchParams = ( if (data.group_size) { search_params.group_size = data.group_size; } + if (data.hints) { + search_params.hints = data.hints; + } return search_params; };