# Kuromoji analyzer plugin together with search analyzer synonyms

**URL:** <https://discuss.elastic.co/t/kuromoji-analyzer-plugin-together-with-search-analyzer-synonyms/216444>\
**Category:** Elasticsearch\
**Created:** [January 24, 2020, 2:47pm UTC](https://discuss.elastic.co/t/kuromoji-analyzer-plugin-together-with-search-analyzer-synonyms/216444 "2020-01-24T14:47:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jei](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@jei](https://discuss.elastic.co/u/jei)\
**Post date:** [January 24, 2020, 2:47pm UTC](https://discuss.elastic.co/t/kuromoji-analyzer-plugin-together-with-search-analyzer-synonyms/216444/1 "2020-01-24T14:47:20Z")

</div>

Hi,

We're in the process of making use of synonyms with search analyzers.

We have analyzers for each language. These are almost the same, but using different stemmers for each analyzer. The creation of Analyzers and Search Analyzers looks something like this.

```
return descriptor
    .Custom($"{language}_analyzer", analyzer => analyzer
        .Tokenizer("standard")
        .CharFilters("html_char_filter")
        .Filters("asciifolding", "lowercase", $"{language}_stemmer"))

    .Custom($"{language}_search_analyzer", analyzer => analyzer
        .Tokenizer("standard")
        .CharFilters("html_char_filter")
        .Filters("asciifolding", "lowercase", "synonym", $"{language}_stemmer"));

```

As you can see the Search analyzer has a synonym filter.

Now this works fine, but for japanese we use the Kuromoji plugin - which comes with it's own analyzer.

How could I go about "injecting" the synonyms into this analyzer - or is it possible to get a kuromoji stemmer filter?

---

<div class="post-metadata">

**Author:** ![jei](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@jei](https://discuss.elastic.co/u/jei)\
**Post date:** [February 3, 2020, 11:47am UTC](https://discuss.elastic.co/t/kuromoji-analyzer-plugin-together-with-search-analyzer-synonyms/216444/2 "2020-02-03T11:47:30Z")

</div>

Any help will be greatly appreciated.

---

<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 2, 2020, 11:47am UTC](https://discuss.elastic.co/t/kuromoji-analyzer-plugin-together-with-search-analyzer-synonyms/216444/3 "2020-03-02T11:47:35Z")

</div>

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