# Elasticsearch Kuromoji plugin

**URL:** <https://discuss.elastic.co/t/elasticsearch-kuromoji-plugin/334361>\
**Category:** Elasticsearch\
**Created:** [May 25, 2023, 6:25pm UTC](https://discuss.elastic.co/t/elasticsearch-kuromoji-plugin/334361 "2023-05-25T18:25:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a4amann](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@a4amann](https://discuss.elastic.co/u/a4amann)\
**Post date:** [May 25, 2023, 6:25pm UTC](https://discuss.elastic.co/t/elasticsearch-kuromoji-plugin/334361/1 "2023-05-25T18:25:40Z")

</div>

What is the expected output when we run :

```auto
PUT test
{
  "settings": {
    "index": {
      "analysis": {
        "filter": {
          "kuromoji_number": {
            "type": "kuromoji_number"
          },
          "kuromoji_readingform": {
            "type": "kuromoji_readingform"
          }
        },
        "tokenizer": {
          "kuromoji": {
            "type": "kuromoji_tokenizer"
          }
        }
      }
    }
  }
}

```

```auto
GET /test/_analyze
{
  "text": "一〇〇〇",
  "tokenizer": "kuromoji",
  "filter": [
    "kuromoji_number",
    "kuromoji_readingform"
  ]
}

```

should the output be like :

```auto
{
  "tokens": [
    {
      "token": "一",
      "number": 1,
      "reading_form": "ichi"
    },
    {
      "token": "〇",
      "number": 0,
      "reading_form": "zero"
    },
    {
      "token": "〇",
      "number": 0,
      "reading_form": "zero"
    },
    {
      "token": "〇",
      "number": 0,
      "reading_form": "zero"
    }
  ]
}

```

or like this

```auto
{
  "tokens" : [
    {
      "token" : "〇",
      "start_offset" : 0,
      "end_offset" : 4,
      "type" : "word",
      "position" : 0
    }
  ]
}

```

How to understand how the plugin would work in case of 2 filters.

---

<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 22, 2023, 6:26pm UTC](https://discuss.elastic.co/t/elasticsearch-kuromoji-plugin/334361/2 "2023-06-22T18:26:23Z")

</div>

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