I am querying ElasticSearch by using the following query and it is giving me results as per the query along with some other irrelevant data.
GET items/_search
{
"query" :{
"match": {"code": "*7000-8002-W*"}
}
}
But if I query like this, I am getting the proper results:
GET items/_search
{
"query" :{
"match": {"code": "*S6617523*"}
}
}
Why is the first query returns some other irrelevant data?