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
Feedback

Was this page helpful?