title: ElasticSearch Analyzer and Tokenizer for Emails
body: <p>I could not find a perfect solution either in Google or ES for the following situation, hope someone could help here.</p>
  
  <p>Suppose there are five email addresses stored under field "email":</p>
  
  <pre><code>1. {"email": "john.doe@gmail.com"}
  2. {"email": "john.doe@gmail.com, john.doe@outlook.com"}
  3. {"email": "hello-john.doe@outlook.com"}
  4. {"email": "john.doe@outlook.com}
  5. {"email": "john@yahoo.com"}
  </code></pre>
  
  <p>I want to fulfill the following searching scenarios:</p>
  
  <p>[Search -> Receive]</p>
  
  <p>"john.doe@gmail.com" -> 1,2</p>
  
  <p>"john.doe@outlook.com" -> 2,4</p>
  
  <p>"john@yahoo.com" -> 5</p>
  
  <p>"john.doe" -> 1,2,3,4</p>
  
  <p>"john" -> 1,2,3,4,5</p>
  
  <p>"gmail.com" -> 1,2</p>
  
  <p>"outlook.com" -> 2,3,4</p>
  
  <p>The first three matchings is a MUST, and for the rest of them the more precise the better. Have already tried different combinations of index/search analyzers, tokenizers, and filters. Also tried to work on the condition for match queries, but did not find an ideal solution, any thought is welcome, and no limit to the mappings, analyzers, or which kind of query to use, thanks.</p>