# Query malformed, no start\_object after query name

**URL:** <https://discuss.elastic.co/t/query-malformed-no-start-object-after-query-name/81786>\
**Category:** Elasticsearch\
**Created:** [April 10, 2017, 9:40am UTC](https://discuss.elastic.co/t/query-malformed-no-start-object-after-query-name/81786 "2017-04-10T09:40:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrillewoodz](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chrillewoodz](https://discuss.elastic.co/u/chrillewoodz)\
**Post date:** [April 10, 2017, 9:40am UTC](https://discuss.elastic.co/t/query-malformed-no-start-object-after-query-name/81786/1 "2017-04-10T09:40:54Z")

</div>

My data looks like this:

```
[
  ...
  {
    title: 'My first event',
    guestlist: {
      list: [
        {
          name: 'Christoffer'
        }
      ]
    }
  }
  ...
]

```

And I'm trying to use this query:

```
  body: {
    query: {
      bool: {
        must: [
          {
            nested: {
              path: 'guestlist',
              query: {
                bool: {
                  must: [
                    {
                      path: 'list',
                      query: {
                        bool: {
                          must: [
                            {
                              match_phrase_prefix: {
                                'list.name': 'christoffer' 
                              }
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        ]
      }
    }
  }

```

But I just get the error that's in the title, what am I doing wrong?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 10, 2017, 9:45am UTC](https://discuss.elastic.co/t/query-malformed-no-start-object-after-query-name/81786/2 "2017-04-10T09:45:12Z")

</div>

Hey,

can you provide a full reproduction case. You do not need to use nested, if you dont have it configured in the mapping, but we the information you gave does not tell this.

Can you provide a full reproduction example (index creation, mapping configuration, document indexing, full example query), plus the elasticsearch version you are using.

Thanks!

--Alex

---

<div class="post-metadata">

**Author:** ![chrillewoodz](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chrillewoodz](https://discuss.elastic.co/u/chrillewoodz)\
**Post date:** [April 10, 2017, 10:15am UTC](https://discuss.elastic.co/t/query-malformed-no-start-object-after-query-name/81786/3 "2017-04-10T10:15:19Z")

</div>

Unfortunately I do not know what more to provide.

I am using ElasticSearch with Firebase and it's [https://github.com/firebase/flashlight](https://github.com/firebase/flashlight) plugin. Perhaps you can look there to see additional info on how mapping etc is done.

Help is greatly appreciated.

---

<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:** [May 8, 2017, 10:22am UTC](https://discuss.elastic.co/t/query-malformed-no-start-object-after-query-name/81786/4 "2017-05-08T10:22:26Z")

</div>

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