title: How to match when JSON in a list?
body: <p>Some guys mapping data like this,</p>
  <pre><code>&quot;item&quot;:[
          {&quot;name&quot;:      &quot;ABC&quot; }
          {&quot;brand&quot;:     &quot;edf&quot; },
          {&quot;quantity&quot;:    12  }
         ]
  </code></pre>
  <p>I tried to filter like this :</p>
  <pre><code>&quot;filter&quot;:
       {&quot;term&quot;: {&quot;item.brand&quot;: &quot;edf}}
  </code></pre>
  <p>Then I got this result:</p>
  <pre><code>    &quot;hits&quot;: {
      &quot;total&quot;: {
          &quot;value&quot;: 0,
          &quot;relation&quot;: &quot;eq&quot;
      },
  </code></pre>
  <p>I recognize that <code>name</code>, <code>brand</code> and <code>quantity</code> are putted in a <code>[]</code></p>
  <p>Main question: can we filter it without changing the way we mapping ?</p>
  <hr />
  <p>#actual case:</p>
  <pre><code>&quot;item&quot;: {
     &quot;categories&quot;: [
                       {&quot;deleted_at&quot;: null,
                        &quot;description&quot;: {
                           &quot;en&quot;: &quot;Bun &quot;,
                           &quot;vi&quot;: &quot;Bánh Bao &quot;
                                       }
                        },
                 ....
                    ]
          }
  </code></pre>
  <hr />
  <p>My query:</p>
  <pre><code>[&quot;filter&quot;:
  {&quot;nested&quot;: {&quot;path&quot;:&quot;item.categories&quot;,
          &quot;query&quot;:{
                   &quot;term&quot;:{&quot;item.categories.description.en&quot;:&quot;Bun &quot;}
                  }
         }
   }
   ]
  </code></pre>
  <p>Got this error:</p>
  <pre><code>&quot;failed to create query: [nested] nested object under path [item.categories] is not of nested type&quot;,
  </code></pre>