Weird match query behaviour

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

It depends on your mapping. What is it?

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