# Unknown key for a START\_OBJECT in \[filter\] error on search

**URL:** <https://discuss.elastic.co/t/unknown-key-for-a-start-object-in-filter-error-on-search/320648>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [December 7, 2022, 7:04am UTC](https://discuss.elastic.co/t/unknown-key-for-a-start-object-in-filter-error-on-search/320648 "2022-12-07T07:04:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DKRaju](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@DKRaju](https://discuss.elastic.co/u/DKRaju)\
**Post date:** [December 7, 2022, 7:04am UTC](https://discuss.elastic.co/t/unknown-key-for-a-start-object-in-filter-error-on-search/320648/1 "2022-12-07T07:04:34Z")

</div>

```auto
{
  "query": {
    "bool": {
      "must": {
        "multi_match": {
          "type": "phrase_prefix",
          "query": "Text",
          "operator": "or",
          "fields": [
            "engName",
            "engName45",
            "engShortName"
          ]
        }
      }
    }
  },
  "filter": {
    "query": {
      "bool": {
        "should": [
          {
            "bool": {
              "should": [
                {
                  "term": {
                    "Classification": "bkac"
                  }
                }
              ],
              "must": [
                {
                  "term": {
                    "isDeleted": "n"
                  }
                },
                {
                  "terms": {
                    "status": [
                      "Yes",
                      "No"
                    ]
                  }
                }
              ],
              "must_not": [
                {
                  "terms": {
                    "Market": [
                      "f",
                      "s",
                      "fh"
                    ]
                  }
                }
              ]
            }
          },
          {
            "bool": {
              "should": [
                {
                  "range": {
                    "expiryDate": {
                      "ytd": "2022-11-10"
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    }
  }
}

```

---

<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:** [January 4, 2023, 7:05am UTC](https://discuss.elastic.co/t/unknown-key-for-a-start-object-in-filter-error-on-search/320648/2 "2023-01-04T07:05:15Z")

</div>

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