我下要增加一项过滤时间的功能:
放在哪里才对呢
其他代码:
"filter" : {
"range" : {"updatetime" : {"gte" : "0"}},
}
放在哪里才对呢
其他代码:
{
"query": {
"function_score": {
"query": {
"multi_match": {
"query": "'.$kw.'",
"fields": [ "title","url","discription^10" ],
"minimum_should_match" : 1
}
},
"field_value_factor": {
"field": "qp",
"modifier": "log1p",
"factor": 1
}
}
},
"highlight" : {
"fields" : {
"title" : {},
"discription" : {}
},
"require_field_match" : false
}
}
3 个回复
weizijun - elasticsearch fan
赞同来自:
qq731761942
赞同来自:
北城以北
赞同来自: