|
@@ -13,9 +13,8 @@ setup:
|
|
|
---
|
|
|
"Nested inner hits":
|
|
|
- skip:
|
|
|
- # this will only run in a mixed cluster environment with at least 1 5.x node
|
|
|
- version: "5.99.99 - "
|
|
|
- reason: multiple types are not supported on 6.x indices onwards
|
|
|
+ version: " - 6.1.99"
|
|
|
+ reason: "<= 6.1 nodes don't always include index or id in nested inner hits"
|
|
|
- do:
|
|
|
index:
|
|
|
index: test
|
|
@@ -35,7 +34,7 @@ setup:
|
|
|
- match: { hits.hits.0._type: "type_1" }
|
|
|
- match: { hits.hits.0._id: "1" }
|
|
|
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._index: "test" }
|
|
|
- - match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._type: "type1" }
|
|
|
+ - match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._type: "type_1" }
|
|
|
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._id: "1" }
|
|
|
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._nested.field: "nested_field" }
|
|
|
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._nested.offset: 0 }
|