please help to see why this simple query returns no results #41885
Replies: 2 comments
-
The reason is: you call the search() immediately after insert(), the data is not fully consumed by querynode.
So, if you call search() immediately after insert(), the newly inserted data could be invisible to search/query, so that you get an empty result. "Strong" guarantees the newly inserted data is visible to search/query, but it adds an extra 200ms latency to search/query. So, you can try adding consistency_level="Strong" to the search request.
|
Beta Was this translation helpful? Give feedback.
-
yeah, it works, thanks for the explanation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I started a local instance (v2.5.10) with docker compose, followed https://milvus.io/docs/sparse_vector.md to insert and query sparse vectors. but this simple script returns no result.
Output:
Beta Was this translation helpful? Give feedback.
All reactions