We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
edge
1 parent 0f02b26 commit db224dfCopy full SHA for db224df
1 file changed
lib/edge/src/lib.rs
@@ -197,7 +197,7 @@ impl Shard {
197
} = search;
198
199
let vector_name = query.get_vector_name().to_string();
200
- let query_vector = query.into();
+ let query_vector = QueryVector::from(query);
201
let with_payload = WithPayload::from(with_payload.unwrap_or_default());
202
let with_vector = with_vector.unwrap_or_default();
203
@@ -264,7 +264,7 @@ impl Shard {
264
points.retain(|point| distance.check_threshold(point.score, score_threshold));
265
}
266
267
- let _ = points.drain(..points.len().saturating_sub(offset));
+ let _ = points.drain(..offset);
268
269
Ok(points)
270
0 commit comments