Advanced search does not support custom analyzers for Wiki

Summary

The GitLab documentation states that advanced search supports two custom analyzers for Chinese/Japanese. However, this support has not taken effect on Wiki content.

Steps to reproduce

According to the document to configure custom analyzer, then try to use the advanced search to search for Chinese, it will not be hit in the Wiki.

Relevant source code

  1. The custom analyzer only targets the title and description fields, but Wiki needs the content field. custom_language_analyzers.rb#L7

  2. When searching for Wiki content, there is no use of the add_custom_analyzers_fields function like when searching for Issues.

    Wiki Issue
    image image

My question

Whether this is a deliberate design or an unintentional move? Are there any potential hidden dangers in supporting custom analyzers for Wiki?

Edited by Zhiyuan Lu