# Access index mapping in FieldMapper#parseCreateField

**URL:** <https://discuss.elastic.co/t/access-index-mapping-in-fieldmapper-parsecreatefield/61964>\
**Category:** Elasticsearch\
**Created:** [September 30, 2016, 9:03pm UTC](https://discuss.elastic.co/t/access-index-mapping-in-fieldmapper-parsecreatefield/61964 "2016-09-30T21:03:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpupor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpupor/32/12251_2.png) [@dpupor](https://discuss.elastic.co/u/dpupor)\
**Post date:** [September 30, 2016, 9:03pm UTC](https://discuss.elastic.co/t/access-index-mapping-in-fieldmapper-parsecreatefield/61964/1 "2016-09-30T21:03:37Z")

</div>

I'm really new in Elasticsearch.  
I'm creating a custom mapper extending from `FieldMapper`, using Java Api, and I need to access to the current index mapping configuration when new data will inserted. I search in `ParseContext` but I can't find any solution. Then I try throught `NodeBuilder#nodeBulder#client` but this solution is to slow.  
So my question is:  
How I can efficiently access to index mapping configuration in `FieldMapper#parseCreateField`?

---

<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 5, 2017, 10:15pm UTC](https://discuss.elastic.co/t/access-index-mapping-in-fieldmapper-parsecreatefield/61964/2 "2017-07-05T22:15:36Z")

</div>

Closed on July 5, 2017, 10:15pm UTC


