# Access analyzer defined in index settings from plugin

**URL:** <https://discuss.elastic.co/t/access-analyzer-defined-in-index-settings-from-plugin/26274>\
**Category:** Elasticsearch\
**Created:** [July 24, 2015, 10:13pm UTC](https://discuss.elastic.co/t/access-analyzer-defined-in-index-settings-from-plugin/26274 "2015-07-24T22:13:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jconwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jconwell/32/4059_2.png) [@jconwell](https://discuss.elastic.co/u/jconwell)\
**Post date:** [July 24, 2015, 10:13pm UTC](https://discuss.elastic.co/t/access-analyzer-defined-in-index-settings-from-plugin/26274/1 "2015-07-24T22:13:39Z")

</div>

When I created an index, I define a new named analyzer in my index settings via json. This way I can have my own TokenFilter chain.

I'd like to be able to get a hold of an instance of this named analyzer inside my plugin and call it. I've tried to add the AnalysisService to a constructor that gets called with @Inject, but I get a bunch of errors about how the objects required by the AnalysisService constructor aren't bound.

Is there any way to either get an instance of the analyzer or the AnalysisService?

---

<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, 11:59pm UTC](https://discuss.elastic.co/t/access-analyzer-defined-in-index-settings-from-plugin/26274/2 "2017-07-05T23:59:08Z")

</div>


