milvus-logo
LFAI
< Docs
  • Java

MetricType

This is an enumeration that provides the following constants.

Constants

  • INVALID

    Sets the metric type to INVALID.

  • L2

    Sets the metric type to L2. This applies to float vectors only.

  • IP

    Sets the metric type to IP. This applies to float vectors only.

  • COSINE

    Sets the metric type to COSINE. This applies to float vectors only.

  • HAMMING

    Sets the metric type to HAMMING. This applies to binary vectors only.

  • JACCARD

    Sets the metric type to JACCARD. This applies to binary vectors only.

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?