Hi Arun,
The bool query is the way to assemble Boolean logic like A OR B versus A AND B.
An example Kibana console script below to create and search for multiple fields:
DELETE test
POST test/_doc/1
{
"firstName":"John",
"lastName":"Smith"
}
GET test/_search
{
"query": {
"bool": {
"should": [
{
"match": {
"firstName": "john"
}
},
{
"match": {
"lastName": "Smith"
}
}
]
}
}
}