struct
Qdrant::Hit
- Qdrant::Hit
- Struct
- Value
- Object
Overview
A search result — the stable type exposed to consumers.
The ONLY place that knows the generated types (anti-corruption layer):
it parses Qdrant::Api::ScoredPoint. Unwrapping the
Response(QueryPoints200Response) (.value.result.points) lives in
Collection#search.
#id is an application rowid (Int64). The OpenAPI layer models the point id
as Int32 (ExtendedPointId); we widen it to Int64 in the public API —
safe as long as ids stay below 2³¹. String ids (UUIDs) aren't in the working
set.
Defined in:
qdrant/hit.crConstructors
- .from(scored : Qdrant::Api::ScoredPoint) : Hit
- .new(id : Int64, score : Float32, payload : Hash(String, JSON::Any) = {} of String => JSON::Any)
Instance Method Summary
Constructor Detail
def self.new(id : Int64, score : Float32, payload : Hash(String, JSON::Any) = {} of String => JSON::Any)
#