🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

milvus-logo
LFAI
< Docs
  • Python
    • SearchResult

Hit()

This is the constructor method to create a Hit object.

Invocation

Hit(hit)

Return

A Hit object.

Attributes

PropertyDescription
idsReturn the primary keys of the Hit results.
distancesReturn the distance between the Hit record and the query.
scoreReturn the score of the Hit record. The score is set equal to distance.
strReturn the information of the Hit record.

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?