Hi, I'm trying to query a document where it has field mapping_type and product.categories[0].name field which I want to query it using a wildcard.
I tried to run the query in this way:
GET /products/_search
{
"query": {
"bool": {
"must": [
{
"match": {
"mapping_type": "house_products"
}
},
{
"wildcard": {
"product.categories[0].name": {
"value": "Ma*"
}
}
}
]
}
}
}
But I didn't get any results. It has documents with product.categories[0].name starting with prefix Ma (verified)
How should I query the desired documents using these two fields?