The default site settings doesn’t fit with CJK language well. Below is some tweaks. You can find them by searching in the site setting panel.
Tweaks
-
Set
min_search_term_length
to 1 or 2The keyword usually can be as short as 2 characters, set it reasonably lower.
-
Check
allow_uppercase_posts
Discourse doesn’t recognize CJK characters when analyzed topics. Users will find their post’s title illegal sometimes.
-
Set
min_post_length
around 8Thumb rule for a reasonable sentences.
-
Set
body_min_entropy
around half ofmin_post_length
Reduplication is common and those characters are meaningful. Too high this value, some users may find not meaningful post error.
-
Set
min_topic_title_length
andtitle_min_entropy
in a similar fashion. -
Set
min_title_similar_length
andmin_body_similar_length
according to assigned value above.
Troubleshooting
Reindex DBs for seaching
1. Enter the discourse docker install directory and run:
./launcher enter app
2. Then type the command below for reindexing
rake search:reindex
3. Now you should be able to search the content.
Thanks to Audrey Tang, she give me support to finish this article.