diff --git a/README.md b/README.md index b088f814af..75758492a4 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ bundle && pnpm install ``` Generate credentials: + ```bash EDITOR=nano bin/rails credentials:edit ``` @@ -98,6 +99,15 @@ Start postgresql service: sudo systemctl start postgresql.service ``` +## OpenSearch Setup + +Install [OpenSearch](https://opensearch.org/downloads.html). For [Homebrew](https://brew.sh/), use: + +```sh +brew install opensearch +brew services start opensearch +``` + ## Serve ```bash diff --git a/db/seeds.rb b/db/seeds.rb index 31f3b38c30..d7dcf1882a 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -803,4 +803,7 @@ def seed_exports # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metric DataExport.suppressing_turbo_broadcasts do seed_exports end + + # index samples using searchkick + Sample.reindex end