title: Elasticsearch: generic tokens combinations
body: <p>suppose that I have a string composed by three tokens: abc def ghi.</p>
  
  <p>I would like to perform a query to retrieve the exact matching and its variations like:</p>
  
  <p>abc ghi def (tokens in any ordering)</p>
  
  <p>abc def (missing token)</p>
  
  <p>abc def jkl ghi (any tokens inserted between my desired tokens)</p>
  
  <p>azc dzf gzz (tokens with an error in any number of its chars)</p>
  
  <p>that is, I want to retrieve documents that have the exactly tokens, its variations and its orthographic errors.</p>
  
  <p>I tried a match phrase prefix query but it doesn't perform a regexp in the initials tokens, just in the last token.</p>
  
  <p>I tried regexp query but it doesn't perform a slop between the tokens.</p>
  
  <p>Could someone suggest me something?</p>
  
  <p>Thanks in advance.</p>