# Retrieve inner\_hits when searching multiple kNN fields in same nested document

**URL:** <https://discuss.elastic.co/t/retrieve-inner-hits-when-searching-multiple-knn-fields-in-same-nested-document/350024>\
**Category:** Elasticsearch\
**Tags:** vector-search\
**Created:** [December 27, 2023, 2:26pm UTC](https://discuss.elastic.co/t/retrieve-inner-hits-when-searching-multiple-knn-fields-in-same-nested-document/350024 "2023-12-27T14:26:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Jasper\_Simon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasper_simon/32/130349_2.png) [@Jasper\_Simon](https://discuss.elastic.co/u/Jasper_Simon)\
**Post date:** [January 3, 2024, 8:20am UTC](https://discuss.elastic.co/t/retrieve-inner-hits-when-searching-multiple-knn-fields-in-same-nested-document/350024/4 "2024-01-03T08:20:42Z")

</div>

Hi @BenTrent, thanks a lot for your solution. It is simple yet effective!

Another thing I noticed in the documentation that is currently holding us back, is the limitation to retrieve only the best match vector regardless of the "size" parameter in the inner\_hits.

I made a [separate post](https://discuss.elastic.co/t/size-parameter-ignored-in-nested-knn-search/350285) about that in order to not clutter this page.

---

_[View the full topic](https://discuss.elastic.co/t/retrieve-inner-hits-when-searching-multiple-knn-fields-in-same-nested-document/350024)._
