I see that the built-in search ignores images in password-protected albums, which is as it should be. But I wonder if there is any way to allow those who have a password to be able to search in the protected albums as well.
no, there’s currently no way to do that.