What does bool query with must
and should
on same level means ?
I saw the query bellow:
{
"query": {
"bool": {
"must":
[{
"match": {
"content": {
"reporter": "Ricky"
}
}
}],
"should":
[{
"match": {
"header": {
"query": "nature"
}
}
}]
}
}
}
- According to Improving search relevance with boolean queries
must
meansand
,should
meansor
- In the query above
must
andshould
("and" and "or") are on the same level.
- So what does this bool query mean ?
- Does
should
contributes here to the final score (ifmust
query dosn't take any place) ?