This is the constructor method to create a Hit object.
A Hit object.
|Return the primary keys of the hit results|
|Return the distance between the hit record and the query|
|Return the score of the hit record. The score is set equal to distance.|
|Return the information of hit record|
# hit is a Hit object # gets the id of a hit entity print(hit.ids) # gets the distance of a entity from the query vector print(hit.distances) # gets the score of a hit entity # should equal to the distance print(hit.score) # gets description of a hit entity print(hit.str)