title: ElasticSearch - multi_match with AND/OR
body: <p>I want to use <code>multi_match</code> across multiple fields in my index.</p>
  
  <p>For example, I have this users index.</p>
  
  <pre><code>Users
  id
  real_name
  contact_name
  user_name
  </code></pre>
  
  <p>These fields are all using the standard analyzer. So I want to search these 3 fields (real_name, contact_name, user_name) and look for users who have both "John" and "Peter" in at least one of those fields.</p>
  
  <p>I know I can use multi_match if I don't need the AND part. Example: only search for John:</p>
  
  <pre><code>{
    "multi_match" : {
      "query":    "john", 
      "fields": [ "real_name", "contact_name", "user_name" ] 
    }
  }
  </code></pre>
  
  <p><a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#query-dsl-multi-match-query" rel="nofollow">https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#query-dsl-multi-match-query</a></p>
  
  <p>But how do I do it if I want additional <code>and</code> conditions. Is it possible to do this with multi_match?</p>