title: Elasticsearch query on array index
body: <p>How do I query/filter by index of an array in elasticsearch?</p>
  
  <p>I have a document like this:-</p>
  
  <pre><code>PUT /edi832/record/1
  {
      "LIN": [ "UP", "123456789" ]
  }
  </code></pre>
  
  <p>I want to search if <i>LIN[0]</i> is "UP" and <i>LIN[1]</i> exists. </p>
  
  <p>Thanks.</p>