Skip to content

MM-67672: Added note on CJKSearch feature flag#8755

Merged
agarciamontoro merged 4 commits intov11.5-documentationfrom
MM-67672.cjk.search.docs
Mar 2, 2026
Merged

MM-67672: Added note on CJKSearch feature flag#8755
agarciamontoro merged 4 commits intov11.5-documentationfrom
MM-67672.cjk.search.docs

Conversation

@agarciamontoro
Copy link
Member

Summary

My first instinct with respect to these docs was to completely remove them, but we cannot do that until v10.11's EOL on August.

So I simply added a note stating the new feature flag on the next v11.6.

This cannot be merged until mattermost/mattermost#35260 is merged and v11.6 is released. Not sure how we sync docs updates with the releases. @amyblais, any tips?

Ticket Link

https://mattermost.atlassian.net/browse/MM-67672


- MariaDB v10+ no longer functions as a MySQL drop-in replacement, and it's not supported for Mattermost due to the requirement of MySQL 5.7.12. Prior versions of MariaDB were not officially supported but may have functioned in older Mattermost releases. If you are running MariaDB now, migrating from MariaDB to the MySQL equivalent is recommended.
- Deployments requiring searching in Chinese, Japanese, and Korean languages require MySQL 5.7.6+ and the configuration of `ngram Full-Text parser <https://dev.mysql.com/doc/refman/5.7/en/fulltext-search-ngram.html>`__. For searching two characters, you will also need to set ``ft_min_word_len`` and ``innodb_ft_min_token_size`` to ``2`` and restart MySQL. See `CJK discussion <https://github.com/mattermost/mattermost/issues/2033#issuecomment-183872616>`__ for details.
- MySQL deployments requiring searching in Chinese, Japanese, and Korean languages require the configuration of `ngram Full-Text parser <https://dev.mysql.com/doc/refman/5.7/en/fulltext-search-ngram.html>`__. For searching two characters, you will also need to set ``ft_min_word_len`` and ``innodb_ft_min_token_size`` to ``2`` and restart MySQL. See `CJK discussion <https://github.com/mattermost/mattermost/issues/2033#issuecomment-183872616>`__ for details.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also removed the mention to MySQL v5.7, which has been out of support for years. This is not really important to this PR, though, and I left everything else intact.

@github-actions
Copy link
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 22b74d7

@amyblais amyblais added this to the v11.6.0 milestone Feb 25, 2026
@amyblais amyblais added 1: Dev Review Requires review by a core commiter Do Not Merge Should not be merged until this label is removed labels Feb 25, 2026
@amyblais
Copy link
Member

@agarciamontoro We use release branch in the docs repo. I haven't created one for v11.6 yet as we haven't started the release process for v11.6 yet.

Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we document the performance limits of the CJK search?


See :doc:`database requirements documentation </deployment-guide/software-hardware-requirements>` for how to set up search for these languages.
```{Attention}
Starting on Mattermost v11.6, searching for Chinese, Japanese or Korean (CJK) characters can be enabled with the `feature flag <https://developers.mattermost.com/contribute/more-info/server/feature-flags/#changing-feature-flag-values>` ``MM_FEATUREFLAGS_CJKSEARCH``.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will ship with v11.5. 🚀

@hanzei hanzei modified the milestones: v11.6.0, v11.5.0 Feb 25, 2026
@agarciamontoro
Copy link
Member Author

Sorry, @amyblais, this is for v11.5, not v11.6, we're cherry-picking it, my bad! And thank you for catching it, @hanzei :)

@agarciamontoro
Copy link
Member Author

Should we document the performance limits of the CJK search?

This is covered by the current recommendation of using Elasticsearch after 2.5 million posts: https://docs.mattermost.com/administration-guide/scale/enterprise-search.html#do-i-need-to-use-elasticsearch-or-aws-opensearch But we can add a reminder there, it won't hurt.

@agarciamontoro agarciamontoro force-pushed the MM-67672.cjk.search.docs branch from eea710f to 3fdebd3 Compare February 25, 2026 17:03
@agarciamontoro agarciamontoro changed the base branch from master to v11.5-documentation February 25, 2026 17:03
Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks 🚀

@hanzei hanzei removed the 1: Dev Review Requires review by a core commiter label Feb 25, 2026
@agarciamontoro
Copy link
Member Author

Force-pushed to rebase on top of v11.5-documentation, sorry for the noise!

@github-actions
Copy link
Contributor

Newest code from mattermost has been published to preview environment for Git SHA eea710f

@github-actions
Copy link
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 3fdebd3

@amyblais amyblais added 1: Dev Review Requires review by a core commiter and removed Do Not Merge Should not be merged until this label is removed labels Feb 25, 2026
Copy link
Member

@isacikgoz isacikgoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a small nitpick. It's a non blocking change request therefore I approve it to not lose time.

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
@agarciamontoro agarciamontoro added 3: Reviews Complete All reviewers have approved the pull request and removed 1: Dev Review Requires review by a core commiter labels Mar 2, 2026
@agarciamontoro agarciamontoro merged commit 199da92 into v11.5-documentation Mar 2, 2026
5 checks passed
@agarciamontoro agarciamontoro deleted the MM-67672.cjk.search.docs branch March 2, 2026 17:36
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Newest code from mattermost has been published to preview environment for Git SHA 9cea6ef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3: Reviews Complete All reviewers have approved the pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants