# Custom Plugin - Apply only to some Indexes

**URL:** <https://discuss.elastic.co/t/custom-plugin-apply-only-to-some-indexes/86108>\
**Category:** Elasticsearch\
**Created:** [May 17, 2017, 1:20pm UTC](https://discuss.elastic.co/t/custom-plugin-apply-only-to-some-indexes/86108 "2017-05-17T13:20:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogeriopt](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@rogeriopt](https://discuss.elastic.co/u/rogeriopt)\
**Post date:** [May 17, 2017, 1:20pm UTC](https://discuss.elastic.co/t/custom-plugin-apply-only-to-some-indexes/86108/1 "2017-05-17T13:20:05Z")

</div>

Hello all,

So I am trying to implement a custom plugin to add some filtering to a query that is sent by an external service. However, I have several indexes in my ElasticSearch, and I don't want to apply the plugin to all of them.

Is this achievable?

Thanks

---

<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 14, 2017, 1:20pm UTC](https://discuss.elastic.co/t/custom-plugin-apply-only-to-some-indexes/86108/2 "2017-06-14T13:20:38Z")

</div>

Closed on June 14, 2017, 1:20pm UTC

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