Our company is considering to encrypt all the personal information data, e.g. first name, last name, email, etc. And we also want to support the partial match of those personal information.
The current idea is :
- apply ngram analyzer to the personal information
- use deterministic encryption algorithm to encrypt every token
- index the encrypted token
- during search, encrypt the search term user entered, then use the encrypted search term for the search