0
此查询很好用,但返回的结果太多。我想添加boost函数,但我不知道正确的语法。ElasticSearch如何使用增强
$data_string = '{
"from" : 0, "size" : 100,
"sort" : [
{ "date" : {"order" : "desc"} }
],
"query": {
"more_like_this_field" : {
"thread.title" : {
"like_text" : "this is a test",
"min_word_len" : 4,
"min_term_freq" : 1,
"min_doc_freq" : 1
}
}
}
}';
谢谢你的回复,miku。我已经尝试过,但增加了“提升”:1.0这样做似乎什么都不做。我试着将号码改为更高的号码,但不会改变结果。 –