# Index\_already\_exists\_exception and this analyzer \[my\_analyzer\] not found for field \[title\]

**URL:** <https://discuss.elastic.co/t/index-already-exists-exception-and-this-analyzer-my-analyzer-not-found-for-field-title/154180>\
**Category:** Elasticsearch\
**Created:** [October 26, 2018, 10:40am UTC](https://discuss.elastic.co/t/index-already-exists-exception-and-this-analyzer-my-analyzer-not-found-for-field-title/154180 "2018-10-26T10:40:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dusan\_b\_bozovic](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@dusan\_b\_bozovic](https://discuss.elastic.co/u/dusan_b_bozovic)\
**Post date:** [October 26, 2018, 10:40am UTC](https://discuss.elastic.co/t/index-already-exists-exception-and-this-analyzer-my-analyzer-not-found-for-field-title/154180/1 "2018-10-26T10:40:22Z")

</div>

Hello i keep getting this error index\_already\_exists\_exception  
I am creating a custom analyzer without properties object,  
then i am creating docs and when i try to add properties in my analyzer, i am geeting an error index allready exists. If i try to update the analyzer "second put req from my example code" i get an error  
analyzer [my\_analyzer] not found for field [title]  
my code is

```
DELETE /qwe

PUT /qwe
{
            "settings": {
                "analysis": {
                  "filter": {
                        "my_stopwords": {
                            "type": "stop",
                            "stopwords": "а,без,более,бы,был,была,были,было,быть,в,вам,вас,весь,во,вот,все,всего,всех,вы,где,да,даже,для,до,его,ее,если,есть,еще,же,за,здесь,и,из,или,им,их,к,как,ко,когда,кто,ли,либо,мне,может,мы,на,надо,наш,не,него,нее,нет,ни,них,но,ну,о,об,однако,он,она,они,оно,от,очень,по,под,при,с,со,так,также,такой,там,те,тем,то,того,тоже,той,только,том,ты,у,уже,хотя,чего,чей,чем,что,чтобы,чье,чья,эта,эти,это,я,a,an,and,are,as,at,be,but,by,for,if,in,into,is,it,no,not,of,on,or,such,that,the,their,then,there,these,they,this,to,was,will,with"
                        }
                    },
                    "analyzer": {
                        "qwe_analyzer": {
                            "type": "custom",
                            "tokenizer": "standard",
                            "filter": [
                                "lowercase",
                                "russian_morphology",
                                "english_morphology",
                                "my_stopwords"
                            ]
                        }
                    }
                }
            },
            "mappings": {
                "qwe_type": {
                  "_all": {
                    "type": "string",
                    "analyzer": "qwe_analyzer"
                  },
                  "properties": {
                  	"title": {
                  		"type": "string",
                  		"include_in_all": true, 
                  		"analyzer": "my_analyzer"
                  	}
                  }
                }
            }

}

#PUT /qwe/_mapping/1
{
  "properties": {
  	"title": {
  		"type": "string",
  		"include_in_all": true, 
  		"analyzer": "my_analyzer"
  	}
  }
}

GET qwe/_settings

GET qwe/_mappings

PUT qwe/qwe_type/1
{
  "title": "Исполнитель вправе требовать"
}

PUT qwe/qwe_type/4
{
  "title": "Исполнитель чей вправе эти требовать ПАПАПА"
}

PUT qwe/qwe_type/2
{
  "title": "Исп0лнитель вправе требовать"
}

PUT qwe/qwe_type/3
{
  "title": "Исполнитель прав требовать"
}

GET qwe/_search

GET qwe/qwe_type/_search
{
  "query": {
    "match": {
      "_all": "Исполнитель"
    }
  }
}
```

---

<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:** [November 23, 2018, 10:40am UTC](https://discuss.elastic.co/t/index-already-exists-exception-and-this-analyzer-my-analyzer-not-found-for-field-title/154180/2 "2018-11-23T10:40:22Z")

</div>

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