Distribution of file for analyzer


(hmeiser) #1

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


(Shay Banon) #2

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
.

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 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


(system) #3