【发布时间】:2017-12-30 12:02:12
【问题描述】:
我有这样的文件:
{
title:'...',
body: '...'
}
我想获取与特定文档相似度超过 90% 的文档。我用过这个查询:
query = {
"query": {
"more_like_this" : {
"fields" : ["title", "body"],
"like" : "body of another document",
"min_term_freq" : 1,
"max_query_terms" : 12
}
}
}
如何更改此查询以检查与指定文档的 90% 相似性?
【问题讨论】:
-
你的问题听起来很像文档中的一个例子......:“
A more complicated use case consists of mixing texts with documents already existing in the index. In this case, the syntax to specify a document is similar to the one used in the Multi GET API.”。链接:elastic.co/guide/en/elasticsearch/reference/current/…
标签: elasticsearch elasticsearch-5