I want to query the data with the condition:
("product":"book" OR customer":"A") AND "Tag":"T1"
My DSL:
body = {
"query":{
"bool":{
"must":[
{"bool":{
"should":[
{
"match":{
"product":"book"
}
},
{
"match":{
"customer":"A"
}
}
]
}},
{
"match":{
"Tag":"T1"
}
}
]
}
}
}
It seems not to work. How to correct it?