# HOw set lemmatization in ES.Like id i search for "update" it should be searching for "updated" and "updating" too

**URL:** <https://discuss.elastic.co/t/how-set-lemmatization-in-es-like-id-i-search-for-update-it-should-be-searching-for-updated-and-updating-too/25790>\
**Category:** Elasticsearch\
**Created:** [July 17, 2015, 10:56am UTC](https://discuss.elastic.co/t/how-set-lemmatization-in-es-like-id-i-search-for-update-it-should-be-searching-for-updated-and-updating-too/25790 "2015-07-17T10:56:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![poonam](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@poonam](https://discuss.elastic.co/u/poonam)\
**Post date:** [July 17, 2015, 10:56am UTC](https://discuss.elastic.co/t/how-set-lemmatization-in-es-like-id-i-search-for-update-it-should-be-searching-for-updated-and-updating-too/25790/1 "2015-07-17T10:56:17Z")

</div>

# HOw set lemmatization in ES.Like id i search for "update" it should be searching for "updated" and "updating" too.

PUT /kbs  
{  
"index":  
{  
"analysis": {

```
   "filter": {
              "de_stop_filter": {
  "type": "stop",
  "stopwords": ["_german_"]
},
"de_stem_filter": {
  "type": "stemmer",
  "name": "minimal_german"
},
"en_stop_filter": {
  "type": "stop",
  "stopwords": ["_english_"]
},
"en_stem_filter": {
  "type": "stemmer",
  "name": "minimal_english"
}
             },
   "analyzer":
   {
     

     "de_analyzer": {
  "type": "custom",
  "filter": ["de_stop_filter", "de_stem_filter"],
  "tokenizer": "standard"
},

"en_analyzer": {
  "type": "custom",
  "filter": ["en_stop_filter", "en_stem_filter"],
  "tokenizer": "standard"
}

  } 
 }

```

}  
}

get /kbs  
PUT /kbs/orders/\_mapping  
{

```
    "search_analyzer" : "standard", 
    "properties" : {
       
        "solid" : {"type":"integer" },
        "title": {"type": "string"},
        "AffectedReleases" : {
            "type" : "string" }

        
        
    }        

```

}

I used like trhis ,but it does not work

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [July 17, 2015, 12:13pm UTC](https://discuss.elastic.co/t/how-set-lemmatization-in-es-like-id-i-search-for-update-it-should-be-searching-for-updated-and-updating-too/25790/2 "2015-07-17T12:13:40Z")

</div>

You need to set the analyzer in you mappings for the fields you want to use your custom analyzers. see here for more information: [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-core-types.html#string](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-core-types.html#string)

---

<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, 12:00am UTC](https://discuss.elastic.co/t/how-set-lemmatization-in-es-like-id-i-search-for-update-it-should-be-searching-for-updated-and-updating-too/25790/3 "2017-07-06T00:00:48Z")

</div>


