First I must say that I spent two days searching before posting,
I need to fuzzy search emails for certain keywords, these keywords are one or two words and can be more,
Since its Fuzzy, I cant use string.contains(),
and since the key words can be more than one word, I cant directly use Levenshtein Algorithm since I need to search for full phrases,
What Im currently doing is building an algorithm with two for loops that looks for the first word in the keyword against the email text using Levenshtein Algorithm, if found, then it would continue looking for the second, third …x word in the keyword.
While this is doable, this would require huge processing power and time,
My question is: is there more efficient way to do the above search ?
I believe what I need is similar to this post, but there is no clear solution in this post,
As was the case for you, I have been looking for a way to apply fuzzy string matching on an email body. So far I have not found an appropriate solution yet.
I am wondering how you tackled this? Have you found a way to perform a fuzzy phrase search?
Looking forward to your response, it would be of great help!