# Elasticsearch user dictionary space include

**URL:** <https://discuss.elastic.co/t/elasticsearch-user-dictionary-space-include/335588>\
**Category:** Elasticsearch\
**Created:** [June 9, 2023, 6:07am UTC](https://discuss.elastic.co/t/elasticsearch-user-dictionary-space-include/335588 "2023-06-09T06:07:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dms6978](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dms6978/32/112435_2.png) [@dms6978](https://discuss.elastic.co/u/dms6978)\
**Post date:** [June 9, 2023, 6:07am UTC](https://discuss.elastic.co/t/elasticsearch-user-dictionary-space-include/335588/1 "2023-06-09T06:07:15Z")

</div>

Hello.  
I have problem with Nori user dictionary. I want to register words that include space, but it's not working.

I tried to register in the dictionary by including words in double quotes or even in small quotes, but it was not resolved.

request

```auto
PUT my_nori
{
  "settings": {
    "analysis": {
      "tokenizer": {
        "my_nori_tokenizer": {
          "type": "nori_tokenizer",
          "user_dictionary_rules": [
            "코끼리 열차"
          ]
        }
      }
    }
  }
}

GET my_nori/_analyze
{
  "tokenizer": "my_nori_tokenizer",
  "text": [
    "코끼리 열차"
  ]
}

```

response

```auto
{
  "tokens": [
    {
      "token": "코끼",
      "start_offset": 1,
      "end_offset": 3,
      "type": "word",
      "position": 0
    },
    {
      "token": "열차",
      "start_offset": 4,
      "end_offset": 6,
      "type": "word",
      "position": 1
    }
  ]
}

```

It's the similar problem as the [previous topic](https://discuss.elastic.co/t/analysis-kuromoji-cant-analaze-text-with-half-width-space-in-user-dictionary/306097), but there was no solution.

Please let me know if there is a solution!

---

<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 7, 2023, 6:08am UTC](https://discuss.elastic.co/t/elasticsearch-user-dictionary-space-include/335588/2 "2023-07-07T06:08:10Z")

</div>

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