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.
Feedback

Was this page helpful?