# Polish stemming plugin (Stempel 2.4.4) not working on ES 2.4

**URL:** <https://discuss.elastic.co/t/polish-stemming-plugin-stempel-2-4-4-not-working-on-es-2-4/74575>\
**Category:** Elasticsearch\
**Created:** [February 9, 2017, 10:12pm UTC](https://discuss.elastic.co/t/polish-stemming-plugin-stempel-2-4-4-not-working-on-es-2-4/74575 "2017-02-09T22:12:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuba](https://avatars.discourse-cdn.com/v4/letter/k/a587f6/32.png) [@kuba](https://discuss.elastic.co/u/kuba)\
**Post date:** [February 9, 2017, 10:12pm UTC](https://discuss.elastic.co/t/polish-stemming-plugin-stempel-2-4-4-not-working-on-es-2-4/74575/1 "2017-02-09T22:12:24Z")

</div>

Hi, I installed Stempel plugin and configured analyzer and mappings. However, generated tokens seems incorrect.

Elastic version: 2.4  
Stempel version: 2.4.4

This is how I set up analyzer:

```
{
  "body": {
    "settings": {
      "analysis": {
        "analyzer": {
          "text_analyzer": {
            "tokenizer": "standard",
            "filter": [
              "lowercase",
              "polish_stem"
            ]
          }
        }
      }
    }
  }
}

```

This is how I test it:

```
curl -XGET 'localhost:9200/my_index/_analyze?pretty=1' -d '
{
  "analyzer" : "text_analyzer",
  "text" : "malediwy"
}'

```

response:

```
{
  "tokens" : [ {
    "token" : "y",
    "start_offset" : 0,
    "end_offset" : 8,
    "type" : "<ALPHANUM>",
    "position" : 0
  } ]
}

```

Oh, and this is how I use it in my mapping:

```
"someTextField": {
  "type": "string",
  "analyzer": "text_analyzer"
}

```

Indeed, it is returning 'Malediwy' for 'y' query! (I'd expect 'Malediwach', 'Malediwami' etc., not 'y')  
Other words are messed up also.

Is this a bug or am I doing something wrong?

---

<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:** [March 9, 2017, 10:13pm UTC](https://discuss.elastic.co/t/polish-stemming-plugin-stempel-2-4-4-not-working-on-es-2-4/74575/2 "2017-03-09T22:13:03Z")

</div>

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