# How to remove inner list id from result in elastic search

**URL:** <https://discuss.elastic.co/t/how-to-remove-inner-list-id-from-result-in-elastic-search/305900>\
**Category:** Elasticsearch\
**Created:** [May 30, 2022, 7:21am UTC](https://discuss.elastic.co/t/how-to-remove-inner-list-id-from-result-in-elastic-search/305900 "2022-05-30T07:21:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sangeet\_Shah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sangeet_shah/32/106319_2.png) [@Sangeet\_Shah](https://discuss.elastic.co/u/Sangeet_Shah)\
**Post date:** [May 30, 2022, 7:21am UTC](https://discuss.elastic.co/t/how-to-remove-inner-list-id-from-result-in-elastic-search/305900/1 "2022-05-30T07:21:37Z")

</div>

I have product list into elastic.

My product entity is as below  
Id,Name, AssociateProductIds

Now I have to remove AssociateProductIds from result. What query I have to write?

e.g.  
Id Name AssociateProductIds  
1 Apple 64 2,3  
2 Apple 128 1,3  
3 Apple 556 1,2

When user search products then I need only 1product relavant to result criteria not all this above product. All above product is connected with each other.

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [June 6, 2022, 10:12pm UTC](https://discuss.elastic.co/t/how-to-remove-inner-list-id-from-result-in-elastic-search/305900/2 "2022-06-06T22:12:09Z")

</div>

Hi!  
Is it possible to show your query and an example doc?

---

<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:** [July 4, 2022, 10:12pm UTC](https://discuss.elastic.co/t/how-to-remove-inner-list-id-from-result-in-elastic-search/305900/3 "2022-07-04T22:12:50Z")

</div>

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