How to provide setting for creating custom analyzer using java API?


(Sam-4) #1

Hi

I looked on following link for creating custom analyzer:

http://www.elasticsearch.org/guide/reference/index-modules/analysis/custom-analyzer.html

I have question to you which API will help me to create custom
analyzer and how to provides the configuration tokenizer and token
filter to custom analyzer.

Thanks


(Karussell) #2

This should help a bit:

client.admin().cluster().prepareUpdateSettings().setPersistentSettings()

http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html

Peter.

On 3 Jan., 06:33, sam mishra.sam...@gmail.com wrote:

Hi

I looked on following link for creating custom analyzer:

http://www.elasticsearch.org/guide/reference/index-modules/analysis/c...

I have question to you which API will help me to create custom
analyzer and how to provides the configuration tokenizer and token
filter to custom analyzer.

Thanks


(Sam-4) #3

Thanks for reply.currently i am using elastic-search 0.16.2 ,which is
not provide prepareUpdateSettings() method to be used.can please tell
me another class or method for solve my problem.

Thanks.

On Jan 4, 2:16 am, Karussell tableyourt...@googlemail.com wrote:

This should help a bit:

client.admin().cluster().prepareUpdateSettings().setPersistentSettings()

http://www.elasticsearch.org/guide/reference/api/admin-cluster-update...

Peter.

On 3 Jan., 06:33, sam mishra.sam...@gmail.com wrote:

Hi

I looked on following link for creating custom analyzer:

http://www.elasticsearch.org/guide/reference/index-modules/analysis/c...

I have question to you which API will help me to create custom
analyzer and how to provides the configuration tokenizer and token
filter to custom analyzer.

Thanks


(system) #4