elasticsearch 的Autocomplete suggesters

搜索建议,怎么对建议的结果进行过滤。比如先过滤,然后进行建议
PUT /blogs_completion/
{
"mappings": {
"tech": {
"properties": {
"body": {
"type": "completion"
},
“create_date":{
"type": "date",
"format":"MMM DD YYY"
}
}
}
}
}

比如下面的建议,我怎么去进行日期为过去一个月之内的建议呢?自己家了bool查询,但是没用,返回的还是所有建议的东西。(不想通过建议后在筛选)
POST blogs_completion/_search?pretty
{ "size": 0,
"suggest": {
"blog-suggest": {
"prefix": "elastic i",
"completion": {
"field": "body"
}
}
}
}

https://blog.csdn.net/zhanglh046/article/details/78536021

谢谢,但是你这个是Term Suggester,是可以加过滤条件的,我用的是Completion Suggester,目前试着不可以
curl 'http://xxx/products_index/_search?size=0' -d '{
"size" : 0,
"explain" : false,
"_source" : {
"includes" : [
"isDelete",
"searchable",
"itemName"
],
"excludes" : [ ]
},
"suggest" : {
"suggestName" : {
"prefix" : "\"香水\"",
"completion" : {
"field" : "suggestName",
"size" : 10
}
}
},
"query" : {
"bool" : {
"must" : [
{
"term" : {
"isDelete" : {
"value" : false,
"boost" : 1.0
}
}
},
{
"term" : {
"searchable" : {
"value" : true,
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
}'
你看我这是想先bool过滤掉一些查询,query放在suggest上面和下面都是过滤不掉