# Why match query is not working with elastic-search 7.3

**URL:** <https://discuss.elastic.co/t/why-match-query-is-not-working-with-elastic-search-7-3/196469>\
**Category:** Elasticsearch\
**Created:** [August 23, 2019, 8:20am UTC](https://discuss.elastic.co/t/why-match-query-is-not-working-with-elastic-search-7-3/196469 "2019-08-23T08:20:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rameshkr1994](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rameshkr1994/32/59029_2.png) [@rameshkr1994](https://discuss.elastic.co/u/rameshkr1994)\
**Post date:** [August 23, 2019, 8:20am UTC](https://discuss.elastic.co/t/why-match-query-is-not-working-with-elastic-search-7-3/196469/1 "2019-08-23T08:20:41Z")

</div>

Dear All.

I have written query on elastic search 2.4 that is working match as like %g% operator:-

when i passed only 'g' then it display all firstname with 'g'  
`

{ "query": {  
"bool": {  
"must": {  
"bool" : {  
"should": [  
{ "match": { "firstname": "g" }},  
{ "match": { "lastname": "" }},  
{ "match": { "dateofbirth": "" }} ,  
{ "match": { "sex": "" }}  
]

```
     }
   }
 }

```

} }

But same query running with elasticsearch 7.3 that is not fetching any data with match same as like %g% why?  
is there version mismatch or some changed happen in elastic search 7.3.?

```
{ "query": {
 "bool": {
 "must": {
     "bool" : { 
      "should": [
         { "match": { "firstname": "g" }},
        { "match": { "lastname": "" }},
        { "match": { "dateofbirth": "" }} , 
         { "match": { "sex": "" }}
       ]
    
     }
   }
 }

```

} }

please help me i getting stuck here?

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:** [September 20, 2019, 8:20am UTC](https://discuss.elastic.co/t/why-match-query-is-not-working-with-elastic-search-7-3/196469/2 "2019-09-20T08:20:52Z")

</div>

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