# Search a term in Japanese

**URL:** <https://meta.discourse.org/t/search-a-term-in-japanese/97359>\
**Category:** Product Support\
**Created:** [17 בספטמבר,‏ 2018,‏ 1:58pm UTC](https://meta.discourse.org/t/search-a-term-in-japanese/97359 "2018-09-17T13:58:22Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![yashi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yashi/32/241984_2.png) [@yashi](https://meta.discourse.org/u/yashi)\
**Post date:** [2 בפברואר,‏ 2022,‏ 10:13am UTC](https://meta.discourse.org/t/search-a-term-in-japanese/97359/28 "2022-02-02T10:13:13Z")

</div>

I don’t use Ruby these days nor don’t know the requirement from Discourse but there seems to be a gem for “[mecab](https://en.wikipedia.org/wiki/MeCab)”.

> **[mecab | RubyGems.org | your community gem host](https://rubygems.org/gems/mecab/)**

I came to this topic because I found that searching some words doesn’t work on [my hosted public instance](https://forum.spacecubics.com/). I have

- min search term length: 1
- search tokenize chinese japanese korean: enabled
- default locale: Japanese

IIRC, I’ve initialized the site with English locale and changed the setting to Japanese later.

The words I found failed to search are “北側”, “真上”, “一般”. These words are in [this topic](https://forum.spacecubics.com/t/topic/27). Many words work but these don’t. I don’t see any pattern whether a word works or not.

Is there a way to check the generated search index on the hosted instance? I can read both Ruby and Japanese so if there is a way to see how Discourse generate search index for CJK, I might be some help.

[CppjiebaRb](https://github.com/erickguan/cppjieba_rb), or [cppjieba](https://github.com/yanyiwu/cppjieba/blob/master/README_EN.md), mentioned by @tgxworld seems to be for Chinese. Is it used for Japanese locale?

---

_[View the full topic](https://meta.discourse.org/t/search-a-term-in-japanese/97359)._
