Bulk searching in approximate kNN

Hi,
I tried using bulk search in my approximate kNN (aNN) searches to improve throughput and it did help.
However I cannot understand from the results which hit referes to which query_vector.
For example if I search for 2 query_vectors in the same search request, and specify k=5, I will get 10 hits.
I expected it to be in the format of "5 hits refer to query_vector1, 5 hits refer to query_vector2", But it is not.

Is there a way to achieve what I described? Or any plan to?
Thanks!

Hi @duty_sloth

You could use multi search api in this case.
In the response array you will have the response for each query in the same order as the request.

3 Likes