title: Elasticsearch match element in array
body: <p>Given this data:</p>
  <pre><code>[
    {
      &quot;tags&quot;: [
        &quot;food&quot;
      ]
    },
    {
      &quot;tags&quot;: [
        &quot;food features&quot;
      ]
    }
  ]
  </code></pre>
  <p>And index mapping</p>
  <pre><code>{
    &quot;mappings&quot;: {
      &quot;properties&quot;: {
        &quot;tags&quot;: {
          &quot;type&quot;: &quot;text&quot;,
          &quot;fields&quot;: {
            &quot;keyword&quot;: {
              &quot;type&quot;: &quot;keyword&quot;,
              &quot;ignore_above&quot;: 256
            }
          }
        }
      }
    }
  }
  </code></pre>
  <p>How can I build a query that returns matched tags <strong>[food]</strong> and <strong>[food features]</strong> when I searched for <strong>[food]</strong> tag,  but when I search for <strong>food features</strong> tag, only <strong>[food features]</strong> tag is returned?
  Thanks.</p>