# \[analysis\] Kuromoji: can't analaze text with Half-width space in user dictionary

**URL:** <https://discuss.elastic.co/t/analysis-kuromoji-cant-analaze-text-with-half-width-space-in-user-dictionary/306097>\
**Category:** Elasticsearch\
**Created:** [June 1, 2022, 9:19am UTC](https://discuss.elastic.co/t/analysis-kuromoji-cant-analaze-text-with-half-width-space-in-user-dictionary/306097 "2022-06-01T09:19:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cross1154](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cross1154/32/106396_2.png) [@cross1154](https://discuss.elastic.co/u/cross1154)\
**Post date:** [June 1, 2022, 9:19am UTC](https://discuss.elastic.co/t/analysis-kuromoji-cant-analaze-text-with-half-width-space-in-user-dictionary/306097/1 "2022-06-01T09:19:53Z")

</div>

I try to use kuromoji user dictionary to make Elasticsearch can analazed japanese name which with  
Half-width space between family name & first name.  
Settings example looks like the below:

```auto
{
  "settings": {
    "analysis": {
      "tokenizer": {
        "kuromoji_user_dict": {
          "type": "kuromoji_tokenizer",
          "mode": "normal",
          "user_dictionary_rules": [
              "渡辺 健,渡辺 健,ワタナベ ヒカリ,カスタム名詞",
            ]
        }
      },
      "analyzer": {
        "my_ja_analyzer": {
          "type": "custom",
          "tokenizer": "kuromoji_user_dict",
            "char_filter": [
              "icu_normalizer"
            ]
        }
      }
    }
  }
}

```

But I fund it dosen't worked well.A part of name was not analazed .

```auto
{
  "analyzer": "my_ja_analyzer",
  "text": "渡辺 健"
}
{
    "tokens": [
        {
            "token": "渡辺",
            "start_offset": 0,
            "end_offset": 2,
            "type": "word",
            "position": 0
        },
        {
            "token": " ",
            "start_offset": 2,
            "end_offset": 3,
            "type": "word",
            "position": 1
        }
    ]
}

```

Can somebody tells me what's wrong with it?

---

<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:** [June 29, 2022, 9:20am UTC](https://discuss.elastic.co/t/analysis-kuromoji-cant-analaze-text-with-half-width-space-in-user-dictionary/306097/2 "2022-06-29T09:20:30Z")

</div>

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