milvus-logo
LFAI
< Docs
  • Python
    • SearchResult

Hits()

This is the constructor method to create a Hits object.

Invocation

Hits(hits)

Return

A Hits object.

Attributes

PropertyDescription
iter(self)Iterate the Hits object. Each iteration returns a Hit which represent a record corresponding to the query.
self[item]Return the kth Hit corresponding to the query.
len(self)Return the number of Hit record.
idsReturn the primary keys of all search results.
distancesReturn the distances of all Hit records.

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?