summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-01-28 12:34:59 +0100
committerJon Bratseth <bratseth@gmail.com>2022-01-28 12:34:59 +0100
commitad5a26fb5fed5b8c29a997ecb3216a941df3e0b5 (patch)
tree570b76354ed5222026066b845f32c543e21b1016 /config-model/src/test/derived
parentf64be46a37319129c640451dcff10fc067535e15 (diff)
Support multiple inheritance of rank profiles
Diffstat (limited to 'config-model/src/test/derived')
-rw-r--r--config-model/src/test/derived/attributerank/attributerank.sd1
-rw-r--r--config-model/src/test/derived/rankprofilemodularity/rank-profiles.cfg9
-rw-r--r--config-model/src/test/derived/rankprofilemodularity/test.sd12
3 files changed, 22 insertions, 0 deletions
diff --git a/config-model/src/test/derived/attributerank/attributerank.sd b/config-model/src/test/derived/attributerank/attributerank.sd
index 86f96e4817c..4989e1795cd 100644
--- a/config-model/src/test/derived/attributerank/attributerank.sd
+++ b/config-model/src/test/derived/attributerank/attributerank.sd
@@ -38,4 +38,5 @@ search attributerank {
rank-type singledouble: identity
rank-type singlestring: identity
}
+
}
diff --git a/config-model/src/test/derived/rankprofilemodularity/rank-profiles.cfg b/config-model/src/test/derived/rankprofilemodularity/rank-profiles.cfg
index 8953a8b6bcf..1c30810e2ef 100644
--- a/config-model/src/test/derived/rankprofilemodularity/rank-profiles.cfg
+++ b/config-model/src/test/derived/rankprofilemodularity/rank-profiles.cfg
@@ -18,6 +18,15 @@ rankprofile[].fef.property[].name "rankingExpression(f2).rankingScript"
rankprofile[].fef.property[].value "fieldMatch(title) + rankingExpression(fo2)"
rankprofile[].fef.property[].name "vespa.rank.firstphase"
rankprofile[].fef.property[].value "rankingExpression(f2)"
+rankprofile[].name "in_schema3"
+rankprofile[].fef.property[].name "rankingExpression(fo2).rankingScript"
+rankprofile[].fef.property[].value "random"
+rankprofile[].fef.property[].name "rankingExpression(f2).rankingScript"
+rankprofile[].fef.property[].value "fieldMatch(title) + rankingExpression(fo2)"
+rankprofile[].fef.property[].name "rankingExpression(fo1).rankingScript"
+rankprofile[].fef.property[].value "now"
+rankprofile[].fef.property[].name "vespa.rank.firstphase"
+rankprofile[].fef.property[].value "rankingExpression(f2)"
rankprofile[].name "outside_schema1"
rankprofile[].fef.property[].name "rankingExpression(fo1).rankingScript"
rankprofile[].fef.property[].value "now"
diff --git a/config-model/src/test/derived/rankprofilemodularity/test.sd b/config-model/src/test/derived/rankprofilemodularity/test.sd
index 720e2143f17..58ee280490e 100644
--- a/config-model/src/test/derived/rankprofilemodularity/test.sd
+++ b/config-model/src/test/derived/rankprofilemodularity/test.sd
@@ -28,4 +28,16 @@ schema test {
}
+ rank-profile in_schema3 inherits outside_schema1, outside_schema2 {
+
+ function f2() {
+ expression: fieldMatch(title) + fo2
+ }
+
+ first-phase {
+ expression: f2
+ }
+
+ }
+
} \ No newline at end of file