Sometimes the repository can become corrupt if the server is shut down abruptly or the Java process stops (either manually or due to a power outage). As a result, you may be unable to get resources that were previously searchable, and there will be no errors or warnings in the logs. Once you verify that permission changes are not the cause, rebuild the index to fix this issue:
After rebuilding the index, the search works correctly again.