你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
medcl - 今晚打老虎。
赞同来自: 三斗室
PUT /medcl/.percolator/1 { "query" : { "match" : { "message" : "bonsai tree" } }, "tag":"bonsai_tree" } PUT /medcl/.percolator/bonsai { "query" : { "match" : { "message" : "bonsai" } },"tag":"bonsai" } GET /medcl/type/_percolate { "doc" : { "message" : "bonsai tree" }, "aggs": { "query" : { "terms" : { "field" : "tag" } } } ,"highlight" : { "pre_tags" : ["<pre>"], "post_tags" : ["</pre>"], "fields" : { "message" : {} } },"size":10 }
{ "took": 44, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "total": 2, "matches": [ { "_index": "medcl", "_id": "bonsai", "highlight": { "message": [ "<pre>bonsai</pre> tree" ] } }, { "_index": "medcl", "_id": "1", "highlight": { "message": [ "<pre>bonsai</pre> <pre>tree</pre>" ] } } ], "aggregations": { "query": { "doc_count_error_upper_bound": 0, "sum_other_doc_count": 0, "buckets": [ { "key": "bonsai", "doc_count": 1 }, { "key": "bonsai_tree", "doc_count": 1 } ] } } }
要回复问题请先登录或注册
ELK
1 个回复
medcl - 今晚打老虎。
赞同来自: 三斗室