0

I am working on a problem of identifying email patterns if you are given an email address. I have a dataset of surnames. If I pass an email address to elasticsearch it should return matching surnames inside that email address. In other words I am looking for a method to find out all the results where results are substring of query string. For example, if my query string is ajohnson then elasticsearch should return me johnson from surname dataset.

1 Answer 1

2

You can create your Custom Analyzer with NGram Tokenizer and use it as search_analyzer. As a result your query string can be split into n-grams and each n-gram will be searched in a surname.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.