# Access to Doc's filed through Analzer

**URL:** <https://discuss.elastic.co/t/access-to-docs-filed-through-analzer/41856>\
**Category:** Community Ecosystem\
**Created:** [February 16, 2016, 8:44am UTC](https://discuss.elastic.co/t/access-to-docs-filed-through-analzer/41856 "2016-02-16T08:44:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahdi\_malaki](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahdi_malaki/32/8052_2.png) [@mahdi\_malaki](https://discuss.elastic.co/u/mahdi_malaki)\
**Post date:** [February 16, 2016, 8:44am UTC](https://discuss.elastic.co/t/access-to-docs-filed-through-analzer/41856/1 "2016-02-16T08:44:55Z")

</div>

I've develop a custom analyzer in form of a plugin. I've override the following method to return my custom TokenStreamComponents.  
protected TokenStreamComponents createComponents(final String fieldName)  
but I note that I just access to field name and its value while I need to have access to a especial filed in the doc as well.  
How can I do that?

---

<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, 9:47pm UTC](https://discuss.elastic.co/t/access-to-docs-filed-through-analzer/41856/2 "2017-07-05T21:47:43Z")

</div>


