# How to index a data structure with list

**URL:** <https://discuss.elastic.co/t/how-to-index-a-data-structure-with-list/167317>\
**Category:** Elasticsearch\
**Created:** [February 6, 2019, 3:42pm UTC](https://discuss.elastic.co/t/how-to-index-a-data-structure-with-list/167317 "2019-02-06T15:42:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliotcrn](https://avatars.discourse-cdn.com/v4/letter/e/3d9bf3/32.png) [@elliotcrn](https://discuss.elastic.co/u/elliotcrn)\
**Post date:** [February 6, 2019, 3:42pm UTC](https://discuss.elastic.co/t/how-to-index-a-data-structure-with-list/167317/1 "2019-02-06T15:42:42Z")

</div>

How to create index for this data structure? There will be multiple otherUserID's and I don't know how to index them with elasticsearch 6.5. Could anyone help me with URL, mapping and indexing in general please?

UserID -\> OtherUserID-\> name:"text" , count : "long"

---

<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:** [March 6, 2019, 3:42pm UTC](https://discuss.elastic.co/t/how-to-index-a-data-structure-with-list/167317/2 "2019-03-06T15:42:43Z")

</div>

Closed on March 6, 2019, 3:42pm UTC

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