Text search does not work for Japanese in the bundled Mattermost as described in the manual
Summary
The bundled Mattermost cannot search text in Japanese.
The method to resolve this issue in the manual (see also) doesn't work due to lacked postgresql package pgxs
.
Steps to reproduce
In the current bundled Mattermost, the search function doesn't work as described in the manual.
I followed the steps according to the manual, especially the ones explained by yukihane in the related issue.
However,
I encountered an error while doing Make
for textsearch_ja
as follows.
$ make USE_PGXS=1 PG_CONFIG=/opt/gitlab/embedded/bin/pg_config
Makefile:20: /opt/gitlab/embedded/postgresql/10/lib/pgxs/src/makefiles/pgxs.mk: そのようなファイルやディレクトリはありません
make: *** ターゲット `/opt/gitlab/embedded/postgresql/10/lib/pgxs/src/makefiles/pgxs.mk' を make するルールがありません. 中止.
The first japanese sentence means "No such a file or directory.", and the second is "There is no rule to make the target '/opt/gitlab/~~~~'. Cancel."
I found that /opt/gitlab/embedded/postgresql/10/lib/pgxs/src/makefiles/pgxs.mk
is the output of /opt/gitlab/embedded/postgresql/10/bin/pg_config --pgxs
and it looks it must be bundled to make textsearch_ja
.
I reported this problem in that issue for Mattermost, however, I believe it's an issue of omnibus-gitlab rather than Mattaermost now and post this issue here again.
What is the current bug behavior?
Please see Steps to reproduce
What is the expected correct behavior?
The file /opt/gitlab/embedded/postgresql/10/lib/pgxs/src/makefiles/pgxs.mk
exists and Make
of textsearch_ja
completes.
If we don't need such a complicated process to enable Japanese search
(e.g. if we can enable Japanese search from gitlab.rb
),
it's highly preferable.
Relevant logs
Please see Steps to reproduce
Details of package version
Provide the package version installation details
gitlab-ce-12.9.1-ce.0.el7.x86_64
Environment details
- Operating System: CentOS Linux release 7.7.1908 (Core)
- Installation Target, remove incorrect values:
- Bare Metal Machine
- Installation Type, remove incorrect values:
- Upgrade from version Gitlab 12.6.3-ce (I realized with this version as I reported in the above related issue.)
- Is there any other software running on the machine: ClamAV, Docker (I use docker for other apps and not for Gitlab)
- Is this a single or multiple node installation?: Single
- Resources
- CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
- Memory total: 16220036 kB
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
I guess there are no relevant sections.
If such a section exists, please let me know. I'll add the description.