summaryrefslogtreecommitdiff
path: root/rest-api-spec/src
diff options
context:
space:
mode:
authorJim Ferenczi <jim.ferenczi@elastic.co>2017-05-12 15:58:06 +0200
committerGitHub <noreply@github.com>2017-05-12 15:58:06 +0200
commit279a18a527b9c23b06c8b75c2aa9321aefca9728 (patch)
tree111c9312cb41d09994a7fa7d86aeb9227a622a9f /rest-api-spec/src
parentbe2a6ce80b2282779159bc017352aa6f216349e2 (diff)
Add parent-join module (#24638)
* Add parent-join module This change adds a new module named `parent-join`. The goal of this module is to provide a replacement for the `_parent` field but as a first step this change only moves the `has_child`, `has_parent` queries and the `children` aggregation to this module. These queries and aggregations are no longer in core but they are deployed by default as a module. Relates #20257
Diffstat (limited to 'rest-api-spec/src')
-rw-r--r--rest-api-spec/src/main/resources/rest-api-spec/test/search.inner_hits/10_basic.yaml39
1 files changed, 0 insertions, 39 deletions
diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.inner_hits/10_basic.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.inner_hits/10_basic.yaml
index d50c3dcb57..4552436634 100644
--- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.inner_hits/10_basic.yaml
+++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.inner_hits/10_basic.yaml
@@ -11,10 +11,6 @@ setup:
properties:
nested_field:
type: nested
- type_2: {}
- type_3:
- _parent:
- type: type_2
---
"Nested inner hits":
@@ -47,38 +43,3 @@ setup:
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._nested.offset: 0 }
- is_false: hits.hits.0.inner_hits.nested_field.hits.hits.0._nested.child
----
-"Parent/child inner hits":
- - skip:
- version: " - 5.99.99"
- reason: mapping.single_type was added in 6.0
-
- - do:
- index:
- index: test
- type: type_2
- id: 1
- body: {"foo": "bar"}
-
- - do:
- index:
- index: test
- type: type_3
- id: 1
- parent: 1
- body: {"bar": "baz"}
-
- - do:
- indices.refresh: {}
-
- - do:
- search:
- body: { "query" : { "has_child" : { "type" : "type_3", "query" : { "match_all" : {} }, "inner_hits" : {} } } }
- - match: { hits.total: 1 }
- - match: { hits.hits.0._index: "test" }
- - match: { hits.hits.0._type: "type_2" }
- - match: { hits.hits.0._id: "1" }
- - is_false: hits.hits.0.inner_hits.type_3.hits.hits.0._index
- - match: { hits.hits.0.inner_hits.type_3.hits.hits.0._type: "type_3" }
- - match: { hits.hits.0.inner_hits.type_3.hits.hits.0._id: "1" }
- - is_false: hits.hits.0.inner_hits.type_3.hits.hits.0._nested