Constructor |
Description |
---|---|
Search Result |
API |
Description |
---|---|
Iterate the search result. |
|
Return the Hits corresponding to the nth query. |
|
Return the number of query of search result. |
pymilvus.
SearchResult
(query_result=None)¶iter
(self)¶Iterate the Search Result. Every iteration returns a Hits corresponding to a query.
[
item]
¶Return the Hits corresponding to the nth query.
The hits corresponding to the nth(item) query.
len
(self) → int¶Return the number of query of Search Result.
The number of query of search result.
API |
Description |
---|---|
Iterate the hits object. |
|
Return the hit record to the query. |
|
Return the number of hit records. |
|
Return the ids of hit records. |
|
Return the distances of hit records. |
pymilvus.
Hits
(hits)¶iter
(self)¶Iterate the Hits object. Every iteration returns a Hit which represent a record corresponding to the query.
[
item]
¶Return the kth Hit corresponding to the query.
The kth specified by item Hit corresponding to the query.
len
(self) → int¶Return the number of hit record.
The number of hit record.
ids
¶Return the ids of all hit record.
The ids of all hit record.
distances
¶Return the distances of all hit record.
The distances of all hit record.
API |
Description |
---|---|
Return the id of hit record. |
|
Return the distance of hit record. |
|
Return the score of hit record. |
|
Return the information of hit record. |
pymilvus.
Hit
(hit)¶id
¶Return the id of the hit record.
The id of the hit record.
distance
¶Return the distance between the hit record and the query.
The distance of the hit record.
score
¶Return the calculated score of the hit record, now the score is equal to distance.
The score of the hit record.
str
(self)¶Return the information of hit record.
The information of hit record.