Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg_bigmを使った検索を有効にする #615

Merged
merged 6 commits into from
Jul 25, 2024
Merged

Conversation

takahashim
Copy link
Collaborator

@takahashim takahashim commented Jul 19, 2024

🎩 What? Why?

#612 の続きで、pg_bigmを使った検索を可能にします。

pg_searchがpg_bigmに対応していないので、無理やり(!)対応させます。

pg_bigmとは

pg_bigmはPostgreSQLの拡張モジュールで、日本語等での全文検索を行うためのものです。
https://github.com/pgbigm/pg_bigm/blob/REL1_2_STABLE/docs/pg_bigm.md

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG upgrade notes, if required
  • If there's a new public field, add it to GraphQL API
  • Add documentation regarding the feature
  • Add/modify seeds
  • Add tests
  • Another subtask

📷 Screenshots (optional)

decidim-search

@takahashim
Copy link
Collaborator Author

GitHub Actions用のPostgreSQLにはpg_bigmが入ってないようでした…。
なので、docker imageはhttps://github.com/Suyama-Daichi/PostgreSQL15_bigm あたりのものを元にすると良さそうです

@takahashim takahashim changed the title Search with pg bigm pg_bigmを使った検索を有効にする Jul 19, 2024
@takahashim takahashim force-pushed the search-with-pg_bigm branch from a00c6a2 to 20ab969 Compare July 22, 2024 14:21
@takahashim takahashim force-pushed the search-with-pg_bigm branch 3 times, most recently from 44549ee to 691508e Compare July 23, 2024 15:53
@takahashim takahashim marked this pull request as ready for review July 24, 2024 08:18
@takahashim
Copy link
Collaborator Author

これを取り込む前か後に、

bin/rails decidim:locales:rebuild_search

を実行して、検索用テーブルを再構築しておいてください。

@ayuki-joto ayuki-joto merged commit a69942d into main Jul 25, 2024
3 of 4 checks passed
@takahashim takahashim deleted the search-with-pg_bigm branch July 25, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

検索結果がある筈なのにゼロ件になる
2 participants