Table of contents

Operation of

Reindexing Find

This is done using the search:reindex rake task in Publish and will not cause any app downtime.

cf ssh publish-data-beta-staging
/tmp/lifecycle/launcher /home/vcap/app 'rails search:reindex[500]' ''

This will populate a new index and rotate the dataset-staging alias to point to it when it’s ready.

Sync from CKAN

This is done automatically using Sidekiq Scheduler. You can run manually to populate your local DB.

## make sure your local DB is empty
rails db:drop db:setup

## make sure your local index is setup
rails search:reindex

## sync datasets or update orgs
rails runner
rails runner

Now run bundle exec sidekiq and rails s and monitor the resulting jobs in the Sidekiq Web UI.

This page was last reviewed . It needs to be reviewed again by the page owner #govuk-datagovuk.