# Run multi-vectors kNN search

**URL:** https://discuss.elastic.co/t/run-multi-vectors-knn-search/299958
**Category:** Elasticsearch
**Created:** [March 17, 2022, 2:17pm UTC](https://discuss.elastic.co/t/run-multi-vectors-knn-search/299958 "2022-03-17T14:17:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rporcu](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@rporcu](https://discuss.elastic.co/u/rporcu)
#### Post date: [March 17, 2022, 2:17pm UTC](https://discuss.elastic.co/t/run-multi-vectors-knn-search/299958/1 "2022-03-17T14:17:36Z")

</div>

Hello everyone!  
I’m really interested by the new kNN search functionality of Elasticsearch v8.

Is there any way to run an approximate kNN search on multiple dense\_vectors?

I checked the docs but, as of version 8.1.0, there’s no mention about it. Moreover, I tried to create a multi-vector query and execute it through Kibana dev tools console but it doesn’t seem to be supported.

Thank you so much,  
Riccardo

---

<div class="post-metadata">

### Author: ![mayya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayya/32/83147_2.png) [@mayya](https://discuss.elastic.co/u/mayya)
#### Post date: [April 1, 2022, 10:05pm UTC](https://discuss.elastic.co/t/run-multi-vectors-knn-search/299958/2 "2022-04-01T22:05:07Z")

</div>

What do you mean by `run an approximate kNN search on multiple dense_vectors`?

If you mean that can a single field have multiple vectors, it is currently not supported.

Also providing multiple query vectors is not supported. But what you can do instead is to issue multiple `_knn_search` requests with each own `query_vector` and combine results on your application side.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 29, 2022, 10:05pm UTC](https://discuss.elastic.co/t/run-multi-vectors-knn-search/299958/3 "2022-04-29T22:05:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

### Author: ![giladgal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/giladgal/32/79615_2.png) [@giladgal](https://discuss.elastic.co/u/giladgal)
#### Post date: [January 23, 2023, 7:48am UTC](https://discuss.elastic.co/t/run-multi-vectors-knn-search/299958/4 "2023-01-23T07:48:05Z")

</div>

You can follow [this development](https://www.elastic.co/guide/en/elasticsearch/reference/master/knn-search.html#_search_multiple_knn_fields), which was not (yet) released. I think it may provide you the capability you are seeking. It is related to issue [#91187](https://github.com/elastic/elasticsearch/issues/91187) and PR [#92118](https://github.com/elastic/elasticsearch/pull/92118) and as you can see it is merged for v8.7 (note, this is not a commitment that it will be released then or at all, but we work transparently and you can draw your own conclusions).
