# Fuzziness on multiple fields and match a particular field elastic search query

**URL:** <https://discuss.elastic.co/t/fuzziness-on-multiple-fields-and-match-a-particular-field-elastic-search-query/344361>\
**Category:** Elasticsearch\
**Created:** [October 4, 2023, 7:32am UTC](https://discuss.elastic.co/t/fuzziness-on-multiple-fields-and-match-a-particular-field-elastic-search-query/344361 "2023-10-04T07:32:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uma\_parvathy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uma_parvathy/32/123696_2.png) [@uma\_parvathy](https://discuss.elastic.co/u/uma_parvathy)\
**Post date:** [October 4, 2023, 7:32am UTC](https://discuss.elastic.co/t/fuzziness-on-multiple-fields-and-match-a-particular-field-elastic-search-query/344361/1 "2023-10-04T07:32:12Z")

</div>

Hi All,

My requirement is to get the response for a specific word which can be appear anywhere in the document and it should belongs the user's account id. i've to use date range query like last 3 hours or 24 hours documents to fetch.

```auto
GET logstash_itsm_incidents_parent/_search
{
  "query": {
    "multi_match" : {
      "query": "009",
      "fields": ["incident_number", "description", "short_description" , "incident_parent_id.company"] ,
      "fuzziness": 1
    },
    "match": {
      "account_id": {
        "query": "AC002231"
      }
    }

  }
}

```

I get parsing error.

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "parsing_exception",
        "reason": "[multi_match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
        "line": 8,
        "col": 5
      }
    ],
    "type": "parsing_exception",
    "reason": "[multi_match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
    "line": 8,
    "col": 5
  },
  "status": 400
}

```

Please help me out. how to query for the users account id and fuzzy logic on specifi fields , date /time range filter. Thanks in advance.

---

<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:** [November 1, 2023, 7:32am UTC](https://discuss.elastic.co/t/fuzziness-on-multiple-fields-and-match-a-particular-field-elastic-search-query/344361/2 "2023-11-01T07:32:42Z")

</div>

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