# Set Custom analyzer as default

**URL:** <https://discuss.elastic.co/t/set-custom-analyzer-as-default/165983>\
**Category:** Elasticsearch\
**Created:** [January 28, 2019, 10:47am UTC](https://discuss.elastic.co/t/set-custom-analyzer-as-default/165983 "2019-01-28T10:47:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danisowa](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@danisowa](https://discuss.elastic.co/u/danisowa)\
**Post date:** [January 28, 2019, 10:47am UTC](https://discuss.elastic.co/t/set-custom-analyzer-as-default/165983/1 "2019-01-28T10:47:50Z")

</div>

Hello together,

i'm new on elasticsearch server and i want to set my server to use whitespace analyzer with lowercase as default analyzer for my index.

configuration (which is not working) looks like

```
{
"testindex" : {
"settings" : {
  "index" : {
    "number_of_shards" : "5",
    "provided_name" : "testindex",
    "creation_date" : "1548672010620",
    "analysis" : {
      "analyzer" : {
        "default" : {
          "type" : "whitespace",
          "analyzer" : "rebuilt_whitespace",
          "tokenizer" : "whitespace"
        },
        "rebuilt_whitespace" : {
          "filter" : [
            "lowercase"
          ],
          "tokenizer" : "whitespace"
        }
      }
    },
    "number_of_replicas" : "1",
    "uuid" : "Puq-_8YjQ_qY8Ko-UbGJdg",
    "version" : {
      "created" : "6050499"
    }
  }
}
}
}
```

---

<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:** [February 25, 2019, 10:47am UTC](https://discuss.elastic.co/t/set-custom-analyzer-as-default/165983/2 "2019-02-25T10:47:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
