summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-09-07 22:38:11 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2021-09-07 22:38:11 +0200
commit3eda134d8483a450ddfc8aa7314f45f1fa8fabfe (patch)
tree9d1b4aa08e41c3f997e2344d78c77b4da2900659 /config-model/src/test/derived
parent994d45c9d86d9781db5e93d8fc0a649ae12bd42b (diff)
If you seemingly inherit yourself, just assume that you try to inherit the same named rankprofile in the base document type.
Diffstat (limited to 'config-model/src/test/derived')
-rw-r--r--config-model/src/test/derived/illegal_sideways_inheritance/child1.sd26
-rw-r--r--config-model/src/test/derived/illegal_sideways_inheritance/child2.sd24
2 files changed, 0 insertions, 50 deletions
diff --git a/config-model/src/test/derived/illegal_sideways_inheritance/child1.sd b/config-model/src/test/derived/illegal_sideways_inheritance/child1.sd
deleted file mode 100644
index 8ee6fa0eabe..00000000000
--- a/config-model/src/test/derived/illegal_sideways_inheritance/child1.sd
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-schema child1 {
-
- document child1 {
- field field1 type int {
- indexing: attribute
- }
-
- }
-
- rank-profile child inherits parent {
- function function2() {
- expression: attribute(field1) + 5
- }
-
- first-phase {
- expression: function2() * function1()
- }
-
- summary-features {
- function1
- function2
- attribute(field1)
- }
- }
-}
diff --git a/config-model/src/test/derived/illegal_sideways_inheritance/child2.sd b/config-model/src/test/derived/illegal_sideways_inheritance/child2.sd
deleted file mode 100644
index cf91b48bd07..00000000000
--- a/config-model/src/test/derived/illegal_sideways_inheritance/child2.sd
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-schema child2 {
-
- document child2 {
- field field1 type int {
- indexing: attribute
- }
- }
-
- rank-profile parent {
- first-phase {
- expression: function1()
- }
- function function1() {
- expression: attribute(field1) + 7
- }
-
- summary-features {
- function1
- attribute(field1)
- }
- }
-
-}