# How to trace prepared index will used custom analyzer?

**URL:** <https://discuss.elastic.co/t/how-to-trace-prepared-index-will-used-custom-analyzer/6279>\
**Category:** Elasticsearch\
**Created:** [January 4, 2012, 6:00am UTC](https://discuss.elastic.co/t/how-to-trace-prepared-index-will-used-custom-analyzer/6279 "2012-01-04T06:00:43Z")\
**Posts on this page:** 2\
**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 4, 2012, 6:00am UTC](https://discuss.elastic.co/t/how-to-trace-prepared-index-will-used-custom-analyzer/6279/1 "2012-01-04T06:00:43Z")

</div>

Hi

I try to create custom analyzer with following settings :

```
        // for creating custom analyzer

         client.admin().indices().prepareCreate("twitter")
        .setSettings(ImmutableSettings.settingsBuilder().loadFromSource( XContentFactory.jsonBuilder()
            .startObject()
                .startObject("analysis")
                    .startObject("analyzer")
                        .startObject("steak")
                            .field("type", "custom")
                            .field("tokenizer", "standard")
                            .field("filter", new String[]

```

{"snowball", "standard", "lowercase"})  
.endObject()  
.endObject()  
.endObject()  
.endObject().string()))  
.execute().actionGet();

I have certain doubt regarding on analyzer :

1.used settings are correct for creating custom analyzer.  
2.how to trace prepared index will used custom analyzer ,because if  
custom analyzer will not used in this case it use default analyzer and  
create index with any exception.

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-trace-prepared-index-will-used-custom-analyzer/6279/2 "2017-07-06T03:43:55Z")

</div>


