I am using angular to pass my query to a URL and it works fine with one query however it doesn't work with another.
Please can someone tell me the difference between these two and let me know why the second does not work.
Works
searchQuery = {
"query": {
"match": {
"_all": {
"query": term,
"operator": "and"
}
}
},
"aggs": {},
"size": 20
};
Doesn't Work via URL but does via CURL
searchQuery = {
"query": {
"bool": {
"should": [{
"match": {
"exerciseName": "Squat"
}
}]
}
}
}
Many thanks in advance.