E2E encryption while having a useful search engine seems pretty hard to do from what I'm understanding.
I switched from Notion to my own electron-based markdown editor just for the peace of mind of not having my notes stored in clear on someone else's server.