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

**URL:** <https://discuss.elastic.co/t/term-query-malformed-no-start-object-after-query-name/275275>\
**Category:** Elasticsearch\
**Created:** [June 8, 2021, 9:38am UTC](https://discuss.elastic.co/t/term-query-malformed-no-start-object-after-query-name/275275 "2021-06-08T09:38:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeanO95](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@SeanO95](https://discuss.elastic.co/u/SeanO95)\
**Post date:** [June 8, 2021, 9:38am UTC](https://discuss.elastic.co/t/term-query-malformed-no-start-object-after-query-name/275275/1 "2021-06-08T09:38:44Z")

</div>

Hey guys, seeing 'query malformed' no matter what field I try to use.  
I am trying to use postman to input data for my GET to pull back but seeing this issue.  
If I use postman to input data into my POST using the same method I have no issue.

The code snippet is:

```auto
const { body } = await client.search({
      filter_path: 'hits.hits._source',
      body: {
        query: {
          term: result,
        },
      },
    });

```

The result comes in like a simple JSON format. AWS outputs it like so:  
`{ "Hello": "World!" }`

Whereas if I hardcode it in like:  
`term: { Hello: "World!" }`

there is no problem  
Anyone see any problems with how I am inserting my data?

Thanks.

---

<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:** [July 6, 2021, 9:39am UTC](https://discuss.elastic.co/t/term-query-malformed-no-start-object-after-query-name/275275/2 "2021-07-06T09:39:24Z")

</div>

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