I have the following query which has bool query and a filter.
curl -XGET 'http://localhost:9200/cstest/teset1/_search?pretty=true' -d '
{
"from" : 0,
"size" : 10,
"query" : {
"bool" : {
"must" : {
"multi_match" : {
"query" : "java",
"fields" : [ "title", "description" ]
}
},
“filter”:[
{ "range": { "pubdate": { "gte": "2014-01-01" }}}
]
}
}
}’
This gives me the following error.
reason" : "bool query does not support [“filter”]",
Any ideas wjhat I am doing wrong?