wsearchmigplugin.dll Error in Windows 10 and 11: Windows Search migration and indexed scope

After a Windows upgrade, Explorer shows fewer search results and setup diagnostics name wsearchmigplugin.dll.
The Windows file inventory identifies wsearchmigplugin.dll as Microsoft Windows Search Migration Plugin. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Check whether known items remain accessible in their original location and whether their folders are in the current indexing scope. Record Windows' indexing status.
Repair the affected feature
Complete supported Windows servicing and restore the intended index settings. Use the built-in recovery or rebuild only when the documented index check calls for it.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Search for a known file inside the intended scope and confirm the correct item appears and opens.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.