# \[term\] query malformed, no start\_object after query name

**URL:** <https://discuss.elastic.co/t/term-query-malformed-no-start-object-after-query-name/166997>\
**Category:** Elasticsearch\
**Created:** [February 4, 2019, 4:54pm UTC](https://discuss.elastic.co/t/term-query-malformed-no-start-object-after-query-name/166997 "2019-02-04T16:54:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ngw/32/40546_2.png) [@ngw](https://discuss.elastic.co/u/ngw)\
**Post date:** [February 4, 2019, 4:54pm UTC](https://discuss.elastic.co/t/term-query-malformed-no-start-object-after-query-name/166997/1 "2019-02-04T16:54:44Z")

</div>

Hi \*, I have a query that should be rather simple, but for the hell of it I can't get the syntax right.  
I want to multi\_match on several fields, and filter the resultset on a single field:

```
GET _search
{
  "query": {
    "bool": {
      "must": {
        "multi_match": {
          "query": "test",
          "fields": [
            "title", "description", "tags"
          ]
        }
      },
      "filter": {
        "term": [
          {
            "user_id": 123456
          }
        ]
      }
    }
  }
}

```

Apparently my "filter" is malformed, but I have no idea why. What am I doing wrong?

Thanks in advance,  
ngw

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 4, 2019, 4:55pm UTC](https://discuss.elastic.co/t/term-query-malformed-no-start-object-after-query-name/166997/2 "2019-03-04T16:55:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
