# Weird match query behaviour

**URL:** <https://discuss.elastic.co/t/weird-match-query-behaviour/155443>\
**Category:** Elasticsearch\
**Created:** [November 5, 2018, 6:56pm UTC](https://discuss.elastic.co/t/weird-match-query-behaviour/155443 "2018-11-05T18:56:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathee](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@mathee](https://discuss.elastic.co/u/mathee)\
**Post date:** [November 5, 2018, 6:56pm UTC](https://discuss.elastic.co/t/weird-match-query-behaviour/155443/1 "2018-11-05T18:56:54Z")

</div>

Hi everyone!

I have a question regarding the query match (bare in mind I am new to elasticsearch).

When I run on localhost and create a test index, put some data and do (followed the getting started video)

GET /bank/\_search  
{  
"query": {  
"match" : {  
"address": "mill"  
}  
}  
}

I hit all documents which somehow have "mill" in their address, so it works as expected according to how the the standard analyzer tokenizes strings. For example, I hit a doc with  
"address": "288 Mill Street", so all good.

However, on our own data base, when I run  
GET /someindex/\_search  
{  
"query": {  
"match" : {  
"title": "Best Movie"  
}  
}  
}

I only hit documents, whose titles match _exactly_ "Best Movie". When I query match for "Best", documents with titles "Best Movie" will not be found, only those which have the exact title "Best", which is not expected in my opinion. Is there something I don't know about yet why it behaves that way?

Thanks a lot,  
Matt

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 5, 2018, 9:12pm UTC](https://discuss.elastic.co/t/weird-match-query-behaviour/155443/2 "2018-11-05T21:12:58Z")

</div>

It depends on your mapping. What is it?

---

<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:** [December 3, 2018, 9:12pm UTC](https://discuss.elastic.co/t/weird-match-query-behaviour/155443/3 "2018-12-03T21:12:59Z")

</div>

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