milvus-logo
LFAI
< Docs
  • Java

IndexType

The enumeration for available index types.

package io.milvus.param;
public enum IndexType

Type

Code

Description

None

0

For internal usage.

FLAT

1

Works for FloatVector/Float16Vector/BFloat16Vector type field.

IVF_FLAT

2

Works for FloatVector/Float16Vector/BFloat16Vector type field.

IVF_SQ8

3

Works for FloatVector/Float16Vector/BFloat16Vector type field.

IVF_PQ

4

Works for FloatVector/Float16Vector/BFloat16Vector type field.

HNSW

5

Works for FloatVector/Float16Vector/BFloat16Vector type field.

DISKANN

10

Works for FloatVector/Float16Vector/BFloat16Vector type field.

AUTOINDEX

11

Works for FloatVector/Float16Vector/BFloat16Vector type field. The auto index parameters are defined in the milvus.yaml.

SCANN

12

Works for FloatVector/Float16Vector/BFloat16Vector type field.

GPUIVFFLAT

50

Only for FloatVector type field. Only works when the server is GPU mode.

GPUIVFPQ

51

Only for FloatVector type field. Only works when the server is GPU mode.

GPUBRUTEFORCE

52

Only for FloatVector type field. Only works when the server is GPU mode.

GPU_CAGRA

53

Only for FloatVector type field. Only works when the server is GPU mode.

BIN_FLAT

80

Only for BinaryVector type field.

BINIVFFLAT

81

Only for BinaryVector type field.

TRIE

100

Only for VarChar type field.

STL_SORT

200

Only for numeric type field.

INVERTED

201

Works for all scalar fields except JSON type field.

SPARSEINVERTEDINDEX

300

Only for SparseFloatVector type field.

SPARSE_WAND

301

Only for SparseFloatVector type field.

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?