LoginSignup
2
2

More than 5 years have passed since last update.

Mattermost の検索機能

Posted at

Mattermost が日本語検索に対応していないと勘違いしてコードを読んだ際の覚書です。途中で気づいたのですが完全一致には対応していました・・・

対象

検索の流れ

search_baar.png

クライアント側

platform/web/react/components/search_bar.jsx#L101-L125
platform/web/react/components/search_bar.jsx#L4-L12

platform/web/react/utils/client.jsx#L838-L852

サーバー側

platform/api/post.go#L25
platform/api/post.go#L897-L927

platform/store/store.go#L33
platform/store/store.go#L93
platform/store/store.go#L12-L17

platform/store/sql_post_store.go#L526-L689

データベース

確認

#make install
make run
docker ps
docker run --link mattermost-mysql -it --rm mysql bash
mysql -u $MATTERMOST_MYSQL_ENV_MYSQL_USER -p$MATTERMOST_MYSQL_ENV_MYSQL_ROOT_PASSWORD -h $MATTERMOST_MYSQL_PORT_3306_TCP_ADDR $MATTERMOST_MYSQL_ENV_MYSQL_DATABASE
show tables;
desc Posts;

起動時の流れ(逆順)

platform/model/post.go#L18-L35

platform/store/sql_post_store.go#L26

platform/store/sql_store.go#L115
platform/store/sql_store.go#L53

platform/api/server.go#33

platform/mattermost.go#L55

(参考)Go Relational Persistence v1.7

gorp/README.md

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2