The objective here is to find all SegmentNotFoundException type corruption and remove it (as we don't have a valid backup)
Before running any of the below steps we created an index.json file (see the file below) which contains only the index definitions of the corrupted indexes.
- This generates the file indexing-results\index-definities.json
java -Xmx8g -jar oak-run-1.8.12.jar index --fds-path=crx-quickstart\repository\datastore crx-quickstart\repository\segmentstore --index-definitions
- From that file we copied only the definitions we needed and created index.json (file attached here )