# How can I mapping index with nested fields by Java API Client?

**URL:** <https://discuss.elastic.co/t/how-can-i-mapping-index-with-nested-fields-by-java-api-client/304619>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [May 12, 2022, 6:20pm UTC](https://discuss.elastic.co/t/how-can-i-mapping-index-with-nested-fields-by-java-api-client/304619 "2022-05-12T18:20:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anfalov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anfalov/32/105605_2.png) [@Anfalov](https://discuss.elastic.co/u/Anfalov)\
**Post date:** [May 12, 2022, 6:20pm UTC](https://discuss.elastic.co/t/how-can-i-mapping-index-with-nested-fields-by-java-api-client/304619/1 "2022-05-12T18:20:35Z")

</div>

I'm trying to index simple "forumlike" document: question with list of answers, but in kibana i see that client ignore field of my class with List. I can't find any information about it so can you please give me link to some example of using new API Client with nested fields. Thank you.

---

<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:** [June 9, 2022, 6:21pm UTC](https://discuss.elastic.co/t/how-can-i-mapping-index-with-nested-fields-by-java-api-client/304619/2 "2022-06-09T18:21:06Z")

</div>

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