Multiple fields wild card bool query

Currently using below bool query which searches for a combination of all input words or either one of input word on the field "Name". How to query on multiple fields using wild cards?

POST inventory_dev/_search
{
"from": 0,
"query": {
"bool": {
"must": [
{
"bool": {
"should": [
{
"term": {
"Name": {
"value": "dove"
}
}
},
{
"term": {
"Name": {
"value": "3.75oz"
}
}
},
{
"bool": {
"must": [
{
"wildcard": {
"Name": {
"value": "dove"
}
}
},
{
"wildcard": {
"Name": {
"value": "3.75oz"
}
}
}
]
}
}
]
}
}
]
}
},
"size": 10,
"sort": [
{
"_score": {
"order": "desc"
}
}
]
}Preformatted text

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