# Distribution of file for analyzer

**URL:** <https://discuss.elastic.co/t/distribution-of-file-for-analyzer/5462>\
**Category:** Elasticsearch\
**Created:** [September 27, 2011, 11:57am UTC](https://discuss.elastic.co/t/distribution-of-file-for-analyzer/5462 "2011-09-27T11:57:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmeiser](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@hmeiser](https://discuss.elastic.co/u/hmeiser)\
**Post date:** [September 27, 2011, 11:57am UTC](https://discuss.elastic.co/t/distribution-of-file-for-analyzer/5462/1 "2011-09-27T11:57:31Z")

</div>

Hi,

we have a customer analyzer. This analyzer uses a huge dictionary to  
analyse the token stream.  
How can we distribute or update this file within the elasticsearch  
cluster? How can the analyzer access this file?

Thank you for the anwser.

ciao  
hans

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 27, 2011, 9:18pm UTC](https://discuss.elastic.co/t/distribution-of-file-for-analyzer/5462/2 "2011-09-27T21:18:55Z")

</div>

You need to copy it over to the nodes. You can have Environment injected to  
your analyzer provider, and use it to fetch the file from the config  
location of elasticsearch (For example). See this for an example:  
[https://github.com/elasticsearch/elasticsearch/blob/master/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/compound/AbstractCompoundWordTokenFilterFactory.java](https://github.com/elasticsearch/elasticsearch/blob/master/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/compound/AbstractCompoundWordTokenFilterFactory.java)  
.

And yes, it would be nice to have config files automatically replicated to  
new nodes, but, its not there...

On Tue, Sep 27, 2011 at 2:57 PM, hmeiser [drehtamrad@googlemail.com](mailto:drehtamrad@googlemail.com) wrote:

> Hi,
> 
> we have a customer analyzer. This analyzer uses a huge dictionary to  
> analyse the token stream.  
> How can we distribute or update this file within the elasticsearch  
> cluster? How can the analyzer access this file?
> 
> Thank you for the anwser.
> 
> ciao  
> hans

---

<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:53am UTC](https://discuss.elastic.co/t/distribution-of-file-for-analyzer/5462/3 "2017-07-06T03:53:27Z")

</div>


