搜索日语术语

It does not work.
Any solution to the problem?

Thank you.

Could you post a link to a post that should be found and the search term you are using?

Thank you for the reply.
I mean,
I am running own discourse on my server but I cant search in Japanese.

It’s hard to know why you can’t search without an example. If it’s a public forum, please post a link to a topic and tell us the search term that isn’t working. If it’s a private forum, can you copy & paste the raw post in here and also tell us the search term?

Also, which version of Discourse are you running? And is the default_locale set to Japanese?

It’s a private forum and all words I cannot search.
Like “トークン” , “トークン設計”.

The version is latest, 2.2.0.beta2.
And the default locale is Japanese.

Could you advice me if any updates on this topic?

This is our forum, the private one though.

Thank you.

There isn’t anything inherent blocking the search of japanese characters, for example from your post above:

Yes, seems to work here:

https://meta.discourse.org/search?q=%E3%83%88%E3%83%BC%E3%82%AF%E3%83%B3%E8%A8%AD%E8%A8%88

Thank you, hmm it doesn’t work in our forum. Let me check.

Is the search tokenize chinese japanese korean site setting enabled?

Toggling that and rebuilding the search index may help.

Does our first run setup wizard toggle this site setting when those languages are selected during initial setup? :thinking: I believe it does @sam?

This is already default on if you are using CJK locales

It was not enabled.
A while ago I made it enabled, some Kanji work but kanatana like トークン still doesn’t get the result.

You probably need to rebuild your index, if you edit a post with the kanatana does it start working?

I rebuild the app but still the same.
Is Index rebuild different from ./launch rebuild app?

AFAIK you can reindex as follows:

cd /var/discourse
./launcher enter app
rake search:reindex

@Stephen
Thank you! I stored backup just in case, and anything else should I do before the reindex?
I don’t think there is any, but I should be careful.
Would be appreciated if you could advise me.

I just did this and found that we can search Kanji. But searching Katakana still does’t find words/topics. Any suggestions could I get?

该问题在 2.6 版本中似乎仍未解决。从英语自定义到日语时使用的搜索框运行正常,即使包含片假名、平假名和汉字。搜索引擎是否不同?解决这个问题是否困难?

能否包含以下内容:

  1. 在此处提供一段片假名示例文本

  2. 提供一个当前无法正常工作的搜索词示例

  3. 确认您的网站语言环境为日语,或已启用 search tokenize chinese japanese korean 功能