# Accessing nested fields in native plugin

**URL:** <https://discuss.elastic.co/t/accessing-nested-fields-in-native-plugin/99319>\
**Category:** Elasticsearch\
**Created:** [September 4, 2017, 2:33pm UTC](https://discuss.elastic.co/t/accessing-nested-fields-in-native-plugin/99319 "2017-09-04T14:33:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jul](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jul](https://discuss.elastic.co/u/Jul)\
**Post date:** [September 4, 2017, 2:33pm UTC](https://discuss.elastic.co/t/accessing-nested-fields-in-native-plugin/99319/1 "2017-09-04T14:33:19Z")

</div>

Hello,

could anybody tell me how to access nested fields in a native java plugin? Somehow, I can't find any information about this.  
Also, which is the fastest way to access them? As far as I understand, getting the doc values is the fastest way.

Thanks,  
Julia

---

<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:** [October 2, 2017, 2:33pm UTC](https://discuss.elastic.co/t/accessing-nested-fields-in-native-plugin/99319/2 "2017-10-02T14:33:36Z")

</div>

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