# Error: \[400\] Filters contains an invalid set of keys for object inside of field: filters root; can only have clauses or a single field name

**URL:** <https://discuss.elastic.co/t/error-400-filters-contains-an-invalid-set-of-keys-for-object-inside-of-field-filters-root-can-only-have-clauses-or-a-single-field-name/221124>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [February 27, 2020, 1:05am UTC](https://discuss.elastic.co/t/error-400-filters-contains-an-invalid-set-of-keys-for-object-inside-of-field-filters-root-can-only-have-clauses-or-a-single-field-name/221124 "2020-02-27T01:05:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [February 27, 2020, 12:26pm UTC](https://discuss.elastic.co/t/error-400-filters-contains-an-invalid-set-of-keys-for-object-inside-of-field-filters-root-can-only-have-clauses-or-a-single-field-name/221124/2 "2020-02-27T12:26:35Z")

</div>

When applying one filter you can use the shorthand syntax as you have above.

When applying multiple filters, you need to use the full filter syntax documented here: [https://swiftype.com/documentation/app-search/api/search/filters#combining-filters](https://swiftype.com/documentation/app-search/api/search/filters#combining-filters)

```auto
"filters": {
  "all": [
    { "brand": ["brand1"] },
    { "price": ["price1"] }
  ]
]}

```

---

_[View the full topic](https://discuss.elastic.co/t/error-400-filters-contains-an-invalid-set-of-keys-for-object-inside-of-field-filters-root-can-only-have-clauses-or-a-single-field-name/221124)._
