I want to find all books with "Agriculture" category. the books should contain word "paddy" in the title OR abstract field. Here is my query :
GET /books/_search
{
"query": {
"bool": {
"should": [
{
"match": {
"abstract": "paddy"
}
},
{
"match": {
"title": "paddy"
}
}
],
"filter": {
"term": {
"category": "Agriculture"
}
}
}
}
}
those query return all books with "Agriculture" category, even it's contain word "paddy" or not. What did I do wrong?