Searching based on hashes of the words is one improvement on the status quo that you could do. Hash every token in the documents, then when a user does a search it hashes the words in their query locally and sends that to the server. This reduces the information communicated to the server and reduces the value to an attacker that gets the logs.
sova|5 years ago
a3camero|5 years ago
It doesn't stop the issue of forced changes to code that impair that local hashing, but it's detectable by the user. Server-side encryption/hashing isn't detectable by the user, and that's an important consideration in any secure system.
Best of luck with your project.