diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-09-07 22:38:11 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-09-07 22:38:11 +0200 |
commit | 3eda134d8483a450ddfc8aa7314f45f1fa8fabfe (patch) | |
tree | 9d1b4aa08e41c3f997e2344d78c77b4da2900659 /config-model/src/test/derived | |
parent | 994d45c9d86d9781db5e93d8fc0a649ae12bd42b (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.sd | 26 | ||||
-rw-r--r-- | config-model/src/test/derived/illegal_sideways_inheritance/child2.sd | 24 |
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) - } - } - -} |