# Put index.analysis.analyzer: in different file

**URL:** <https://discuss.elastic.co/t/put-index-analysis-analyzer-in-different-file/9065>\
**Category:** Elasticsearch\
**Created:** [September 19, 2012, 2:25pm UTC](https://discuss.elastic.co/t/put-index-analysis-analyzer-in-different-file/9065 "2012-09-19T14:25:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![q42jaap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/q42jaap/32/2241_2.png) [@q42jaap](https://discuss.elastic.co/u/q42jaap)\
**Post date:** [September 19, 2012, 2:25pm UTC](https://discuss.elastic.co/t/put-index-analysis-analyzer-in-different-file/9065/1 "2012-09-19T14:25:15Z")

</div>

The default elasticsearch.yml is quite extensive with lots of config, which  
is great because you can easily add config params to your node.  
However for our project we need to add filters and analyzers to the  
index.analysis "object" in elasticsearch.yml.  
This makes the elasticsearch.yml a bit confusing as lot's of the file are  
about how elasticsearch runs.

I want to put the index.analysis stuff in a different file for clarity. Is  
it possible to do so?

Thanks

--

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [September 19, 2012, 2:51pm UTC](https://discuss.elastic.co/t/put-index-analysis-analyzer-in-different-file/9065/2 "2012-09-19T14:51:16Z")

</div>

I have looked into this issue as well. yml is a loose standard. Other  
projects have created ways to incorporate "include" files, but there  
is nothing in the official specification for them. Creating a  
mechanism for include files should not be too hard, the question is if  
you want to diverege from the original yml spec.

My reasoning for using a separate file is that the analysis portion of  
the yml file changing for more often than the rest. It would be easier  
to keep track/distribute of changes in a smaller file.

--  
Ivan

On Wed, Sep 19, 2012 at 7:25 AM, Jaap Taal [jaap@q42.nl](mailto:jaap@q42.nl) wrote:

> The default elasticsearch.yml is quite extensive with lots of config, which  
> is great because you can easily add config params to your node.  
> However for our project we need to add filters and analyzers to the  
> index.analysis "object" in elasticsearch.yml.  
> This makes the elasticsearch.yml a bit confusing as lot's of the file are  
> about how elasticsearch runs.
> 
> I want to put the index.analysis stuff in a different file for clarity. Is  
> it possible to do so?
> 
> 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:** [July 6, 2017, 3:12am UTC](https://discuss.elastic.co/t/put-index-analysis-analyzer-in-different-file/9065/3 "2017-07-06T03:12:17Z")

</div>

Closed on July 6, 2017, 3:12am UTC


