Fix out-of-date search indices
If the data in the search index is out-of-sync with the Publishing API,
(for example, after restoring a backup), then any
unpublish messages that have not been processed need to be resent.
Content in the
govuk index is populated from the Publishing API message queue.
Missing documents can be recovered by resending the content to the message queue, using
represent_downstream:published_between rake task.
represent_downstream:published_between['2018-12-17T01:02:30,%202018-12-18T10:20:30'] rake task in Publishing API, but changing the two timestamps to cover the period of downtime.
Other replay options are available, for example replaying all traffic for a single publishing app or doctype. Be aware that these options will replay the entire Publisher API history for that app or doctype, and may take some time.
This will not be necessary after whitehall content has been moved to the
These indexes are populated by whitehall calling an HTTP API in Search API. Missing documents can be recovered by resending the content to Search API directly.
search:index:published_between['2018-12-17T01:02:30,%202018-12-18T10:20:30'] rake task in Whitehall, remembering to change the two timestamps.
This index is used for best bets, which are published by Search Admin
communicating with Search API directly (like how whitehall updates the
detailed indices directly).
reindex_best_bets rake task in search admin to resend all bets to Search API.