# How to write setting in form of JSON?

**URL:** <https://discuss.elastic.co/t/how-to-write-setting-in-form-of-json/6323>\
**Category:** Elasticsearch\
**Created:** [January 9, 2012, 12:20pm UTC](https://discuss.elastic.co/t/how-to-write-setting-in-form-of-json/6323 "2012-01-09T12:20:07Z")\
**Posts on this page:** 3\
**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 9, 2012, 12:20pm UTC](https://discuss.elastic.co/t/how-to-write-setting-in-form-of-json/6323/1 "2012-01-09T12:20:07Z")

</div>

Hi

How to write following settings in form od JSON:

index :  
analysis :  
analyzer :  
myAnalyzer2 :  
type : custom  
tokenizer : myTokenizer1  
filter : [myTokenFilter1, myTokenFilter2]  
char\_filter : [my\_html]  
tokenizer :  
myTokenizer1 :  
type : standard  
max\_token\_length : 900  
filter :  
myTokenFilter1 :  
type : stop  
stopwords : [stop1, stop2, stop3, stop4]  
myTokenFilter2 :  
type : length  
min : 0  
max : 2000  
char\_filter :  
my\_html :  
type : html\_strip  
escaped\_tags : [xxx, yyy]  
read\_ahead : 1024

please help me.

Thanks

---

<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:** [January 9, 2012, 7:44pm UTC](https://discuss.elastic.co/t/how-to-write-setting-in-form-of-json/6323/2 "2012-01-09T19:44:51Z")

</div>

Here is an example:  
[https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/test/unit/index/analysis/test1.json](https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/test/unit/index/analysis/test1.json)  
.

On Mon, Jan 9, 2012 at 2:20 PM, sam [mishra.sameek@gmail.com](mailto:mishra.sameek@gmail.com) wrote:

> Hi
> 
> How to write following settings in form od JSON:
> 
> index :  
> analysis :  
> analyzer :  
> myAnalyzer2 :  
> type : custom  
> tokenizer : myTokenizer1  
> filter : [myTokenFilter1, myTokenFilter2]  
> char\_filter : [my\_html]  
> tokenizer :  
> myTokenizer1 :  
> type : standard  
> max\_token\_length : 900  
> filter :  
> myTokenFilter1 :  
> type : stop  
> stopwords : [stop1, stop2, stop3, stop4]  
> myTokenFilter2 :  
> type : length  
> min : 0  
> max : 2000  
> char\_filter :  
> my\_html :  
> type : html\_strip  
> escaped\_tags : [xxx, yyy]  
> read\_ahead : 1024
> 
> please help me.
> 
> 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-write-setting-in-form-of-json/6323/3 "2017-07-06T03:43:21Z")

</div>


