🚀 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 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?