|
@@ -130,7 +130,6 @@ setup:
|
|
|
- do:
|
|
|
search:
|
|
|
index: unmapped
|
|
|
- type: test
|
|
|
body: {"aggs": { "mfs" : { "matrix_stats": {"fields": ["val1", "val2", "vals"]} } } }
|
|
|
|
|
|
- match: {hits.total: 0}
|
|
@@ -142,7 +141,6 @@ setup:
|
|
|
- do:
|
|
|
search:
|
|
|
index: test
|
|
|
- type: test
|
|
|
body: {"aggs": { "mfs" : { "matrix_stats": {"fields": ["val1", "vals"], "mode" : "max"} } } }
|
|
|
|
|
|
- match: {hits.total: 15}
|
|
@@ -156,7 +154,6 @@ setup:
|
|
|
- do:
|
|
|
search:
|
|
|
index: test
|
|
|
- type: test
|
|
|
body: {"aggs": { "mfs" : { "matrix_stats": {"fields": ["val1", "vals"], "mode" : "min"} } } }
|
|
|
|
|
|
- match: {hits.total: 15}
|
|
@@ -170,7 +167,6 @@ setup:
|
|
|
- do:
|
|
|
search:
|
|
|
index: [test, unmapped]
|
|
|
- type: test
|
|
|
body: {"aggs": { "mfs" : { "matrix_stats": {"fields": ["val1", "val2", "vals"]} } } }
|
|
|
|
|
|
- match: {hits.total: 15}
|
|
@@ -184,7 +180,6 @@ setup:
|
|
|
- do:
|
|
|
search:
|
|
|
index: [test, unmapped]
|
|
|
- type: test
|
|
|
body: {"aggs": { "mfs" : { "matrix_stats": {"fields": ["val1", "val2", "vals"], "missing" : {"val2" : 10, "vals" : 5 } } } } }
|
|
|
|
|
|
- match: {hits.total: 15}
|
|
@@ -199,7 +194,6 @@ setup:
|
|
|
catch: /parsing_exception/
|
|
|
search:
|
|
|
index: test
|
|
|
- type: test
|
|
|
body: {"aggs": { "mfs" : { "matrix_stats": {"fields": ["vals", "val3"], "script" : { "my_script" : {"source" : "1 + doc['val1'].value", "lang" : "js"} } } } } }
|
|
|
|
|
|
---
|
|
@@ -209,5 +203,4 @@ setup:
|
|
|
catch: /parsing_exception/
|
|
|
search:
|
|
|
index: test
|
|
|
- type: test
|
|
|
body: {"aggs": { "mfs" : { "matrix_stats": {"fields": ["val1", "val3", "vals"], "script" : { "my_script" : {"source" : "my_var + doc['val1'].value", "params" : { "my_var" : 1 }, "lang" : "js" } } } } } }
|