问:t-test有什么特点?
答:
问:t-test如何使用?
答:
DELETE t_test_test; PUT /t_test_test { "mappings": { "properties": { "num_1": {"type": "integer"}, "num_2": {"type": "integer"} } } } POST /t_test_test/_doc/1 { "num_1": 3, "num_2": 3 } POST /t_test_test/_doc/2 { "num_1": 6, "num_2": 3 } POST /t_test_test/_doc/3 { "num_1": 9, "num_2": 3 } GET /t_test_test/_search { "size": 0, "aggs": { "t_aggs": { "t_test": { "a": {"field": "num_1"}, "b": {"field": "num_2"}, "type": "paired" } } } } # 结果 { "took" : 1, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 3, "relation" : "eq" }, "max_score" : null, "hits" : [ ] }, "aggregations" : { "t_aggs" : { "value" : 0.22540333075851618 } } }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)