# Elasticsearch Analyzer:Stemmer giving different results

**URL:** <https://discuss.elastic.co/t/elasticsearch-analyzer-stemmer-giving-different-results/163456>\
**Category:** Elasticsearch\
**Created:** [January 9, 2019, 6:19am UTC](https://discuss.elastic.co/t/elasticsearch-analyzer-stemmer-giving-different-results/163456 "2019-01-09T06:19:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulnama](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Post date:** [January 9, 2019, 6:19am UTC](https://discuss.elastic.co/t/elasticsearch-analyzer-stemmer-giving-different-results/163456/1 "2019-01-09T06:19:20Z")

</div>

Hi Team

Below are my settings for custom analyzer

```
 "analyzer": {
    "my_analyzer": {
      "type": "custom",
      "tokenizer": "standard",
      "filter": [
        "possessive_stemmer",
        "lowercase",
        "english_stop",
        "eng_keywords",
        "stemmer"
      ]
    }
  },
  "filter": {
    "english_stop": {
      "type": "stop",
      "stopwords": ["have","should","i","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","my"]
    },
    "stemmer": {
      "type": "stemmer",
      "language": "light_english"
    },
    "possessive_stemmer": {
      "type": "stemmer",
      "language": "possessive_english"
    },
    "eng_keywords": {
      "type": "keyword_marker",
      "keywords": [
        "windows"
      ]
    }
  }
}

```

}

Have a doubt regarding stemmer.

If I use analyze api to understand how it works. the word running is being reduced to run but working is not being reduced to work. \*\*is it because of **light\_stemmer ?**

here are the results

```
POST newoneindex/_analyze
{
  "analyzer": "my_analyzer",
  "text" : "working jumping running"
}

{
  "tokens": [
    {
      "token": "working",
      "start_offset": 0,
      "end_offset": 7,
      "type": "<ALPHANUM>",
      "position": 0
    },
    {
      "token": "jump",
      "start_offset": 8,
      "end_offset": 15,
      "type": "<ALPHANUM>",
      "position": 1
    },
    {
      "token": "running",
      "start_offset": 16,
      "end_offset": 23,
      "type": "<ALPHANUM>",
      "position": 2
    }
  ]
}
```

---

<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 6, 2019, 6:28am UTC](https://discuss.elastic.co/t/elasticsearch-analyzer-stemmer-giving-different-results/163456/2 "2019-02-06T06:28:08Z")

</div>

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