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

**URL:** <https://discuss.elastic.co/t/how-to-provide-setting-for-creating-custom-analyzer-using-java-api/6267>\
**Category:** Elasticsearch\
**Created:** [January 3, 2012, 5:33am UTC](https://discuss.elastic.co/t/how-to-provide-setting-for-creating-custom-analyzer-using-java-api/6267 "2012-01-03T05:33:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [January 3, 2012, 5:33am UTC](https://discuss.elastic.co/t/how-to-provide-setting-for-creating-custom-analyzer-using-java-api/6267/1 "2012-01-03T05:33:18Z")

</div>

Hi

I looked on following link for creating custom analyzer:

[http://www.elasticsearch.org/guide/reference/index-modules/analysis/custom-analyzer.html](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

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [January 3, 2012, 9:16pm UTC](https://discuss.elastic.co/t/how-to-provide-setting-for-creating-custom-analyzer-using-java-api/6267/2 "2012-01-03T21:16:48Z")

</div>

This should help a bit:

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

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Peter.

On 3 Jan., 06:33, sam [mishra.sam...@gmail.com](mailto:mishra.sam...@gmail.com) wrote:

> Hi
> 
> I looked on following link for creating custom analyzer:
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](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

---

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [January 4, 2012, 6:04am UTC](https://discuss.elastic.co/t/how-to-provide-setting-for-creating-custom-analyzer-using-java-api/6267/3 "2012-01-04T06:04:35Z")

</div>

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](mailto:tableyourt...@googlemail.com) wrote:

> This should help a bit:
> 
> client.admin().cluster().prepareUpdateSettings().setPersistentSettings()
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-update)...
> 
> Peter.
> 
> On 3 Jan., 06:33, sam [mishra.sam...@gmail.com](mailto:mishra.sam...@gmail.com) wrote:
> 
> > Hi
> 
> > I looked on following link for creating custom analyzer:
> 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](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

---

<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:43am UTC](https://discuss.elastic.co/t/how-to-provide-setting-for-creating-custom-analyzer-using-java-api/6267/4 "2017-07-06T03:43:54Z")

</div>


