Package io.milvus.client
Class Index.Builder
- java.lang.Object
-
- io.milvus.client.Index.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Indexbuild()Index.BuilderwithParamsInJson(String paramsInJson)Optional.
-
-
-
Method Detail
-
withParamsInJson
public Index.Builder withParamsInJson(@Nonnull String paramsInJson)
Optional. Default to emptyString.For different index type, index parameter is different accordingly, for example: FLAT/IVFLAT/SQ8: {"nlist": 16384} nlist range:[1, 999999] IVFPQ: {"nlist": 16384, "m": 12} nlist range:[1, 999999] m is decided by dim and have a couple of results. NSG: {"search_length": 45, "out_degree": 50, "candidate_pool_size": 300, "knng": 100} search_length range:[10, 300] out_degree range:[5, 300] candidate_pool_size range:[50, 1000] knng range:[5, 300] HNSW: {"M": 16, "efConstruction": 500} M range:[5, 48] efConstruction range:[100, 500]- Parameters:
paramsInJson- extra parameters in JSON format- Returns:
Builder
-
build
public Index build()
-
-