我想在Elastic4s中实现以下查询。看不到在荧光笔中实现matched_fields子句的任何方法。有什么帮助吗?
{
"query": {
"multi_match": {
"type": "most_fields",
"query": "hello world",
"fields": [ "text", "text.human" ]
}
},
"highlight": {
"order": "score",
"fields": {
"text": {
"matched_fields": [ "text", "text.human" ],
"fragment_size": 100,
"number_of_fragments": 10
}
}
}
}发布于 2015-06-14 19:43:25
一个答案很简单的问题。您还不能在elastic4s中这样做:)
所以,我刚加了一句:https://github.com/sksamuel/elastic4s/commit/3f8a4e47ae603b7a3263bc3d31c27f2b6706cd8e
这将出现在下一个1.5.x版本和1.6.0版本中。
https://stackoverflow.com/questions/30827214
复制相似问题