-
New Feature
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
Currently, rebuilding a search index requires to:
- Hold off from processing message queues (for all search indexes)
- Delete the content of the search index
- Rebuild the search index
- Catch up with processing message queues
During that time, the search server will not return any result for this search index, and return outdated results for all other search indexes, which is an issue for editors.
To avoid any downtime, an alternative Solr collection could be used instead.
For example, to rebuild the "recording" search index:
- Create a new "recording_1" Solr collection using the "recording" config
- Configure the live indexer to update "recording_1" too
- Index all recordings in "recording_1" Solr collection
- Add "recording" as an alias to the "recording_1" Solr collection
- Drop the old Solr collection after no issue occurred for some time.
Note: Since collection aliases are supported by Solr in SolrCloud mode only, it will not work for MusicBrainz Docker Compose mirrors which use Solr in standalone mode.