# Need Hunspell Analysis in Single Token Keyword

**URL:** https://discuss.elastic.co/t/need-hunspell-analysis-in-single-token-keyword/212429
**Category:** Elasticsearch
**Created:** [December 19, 2019, 3:07am UTC](https://discuss.elastic.co/t/need-hunspell-analysis-in-single-token-keyword/212429 "2019-12-19T03:07:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Stephanus\_Budiwijaya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephanus_budiwijaya/32/59673_2.png) [@Stephanus\_Budiwijaya](https://discuss.elastic.co/u/Stephanus_Budiwijaya)
#### Post date: [December 19, 2019, 3:07am UTC](https://discuss.elastic.co/t/need-hunspell-analysis-in-single-token-keyword/212429/1 "2019-12-19T03:07:42Z")

</div>

ES version: 5.6.3

**Problem:**  
I have a field with mappings:

```auto
"keyword_phrase_tag": {
    "type": "text",
    "analyzer": "keyword_phrase",
    "search_analyzer": "phrase_keyword_analyzer"
},

```

and then the `keyword_phrase` itself is

```auto
"keyword_analyzer": {
    "filter": [
      "lowercase",
      "english_stemmer"
    ],
    "type": "custom",
    "tokenizer": "keyword"
},

```

If the `keyword_phrase_tag` value is "newest Adidas shoes", my expectation result is "new adidas shoes" but I got "newest adidas shoes".  
It turns out the tokenizer keyword ignore the Hunspell analyzer that implemented in `english_stemmer` filter

```auto
"english_stemmer": {
    "locale": "en_US",
    "type": "hunspell",
    "dedup": "true"
}

```

I can confirm that it is not wrong Hunspell implementation. If try to change the tokenizer to standard, the Hunspell works but split into multiple token

```auto

{
  "tokens": [
    {
      "token": "new",
      "start_offset": 0,
      "end_offset": 6,
      "type": "<ALPHANUM>",
      "position": 0
    },
    {
      "token": "adidas",
      "start_offset": 7,
      "end_offset": 13,
      "type": "<ALPHANUM>",
      "position": 1
    },
    {
      "token": "shoe",
      "start_offset": 14,
      "end_offset": 19,
      "type": "<ALPHANUM>",
      "position": 2
    }
  ]
}

```

**Question**  
Is there a way to implement Hunspell to single token output?

---

<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: [January 16, 2020, 3:07am UTC](https://discuss.elastic.co/t/need-hunspell-analysis-in-single-token-keyword/212429/2 "2020-01-16T03:07:43Z")

</div>

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