Skip to content

Solr reindex script for migrating from solr 6 to solr 9#243

Open
cjcolvar wants to merge 2 commits into
mainfrom
solr_reindex_script
Open

Solr reindex script for migrating from solr 6 to solr 9#243
cjcolvar wants to merge 2 commits into
mainfrom
solr_reindex_script

Conversation

@cjcolvar

Copy link
Copy Markdown

This script avoids fetching everything from fedora and running to_solr. Instead it attempts to reconstruct a full solr document from the solr document returned from querying the old solr. In most cases this is possible due to duplicate fields with one being stored. Unfortunately this isn't possible for all documents. In particular file sets with extracted text need to be reindexed the slow way so I added a check in validate_reconstructable for this case.

If this looks good then I think next steps would be:

  • Deploy to datacore-devel
  • Run script on datacore-devel indexing to solr 9
  • Restart datacore-devel pointing to solr 9
  • Test to ensure all solr fields got populated and querying all the ways works with solr 9
  • Deploy code to datacore-prod
  • Pick a time when no ingests / edits will be happening
  • Run script on datacore-prod indexing to solr 9
  • Restart datacore-prod pointing to solr 9
  • Make sure everything is good
  • Ice cream

@cjcolvar cjcolvar marked this pull request as ready for review July 14, 2026 17:36
@cjcolvar cjcolvar force-pushed the solr_reindex_script branch 2 times, most recently from 3f92906 to 0709029 Compare July 14, 2026 20:56
@cjcolvar cjcolvar force-pushed the solr_reindex_script branch from 0709029 to 73d2ec0 Compare July 15, 2026 15:29
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