diff options
Diffstat (limited to 'config-model/src/test/derived')
-rw-r--r-- | config-model/src/test/derived/rankingexpression/rank-profiles.cfg | 88 | ||||
-rw-r--r-- | config-model/src/test/derived/rankingexpression/rankexpression.sd | 38 |
2 files changed, 126 insertions, 0 deletions
diff --git a/config-model/src/test/derived/rankingexpression/rank-profiles.cfg b/config-model/src/test/derived/rankingexpression/rank-profiles.cfg index b3257c962dd..87882eef273 100644 --- a/config-model/src/test/derived/rankingexpression/rank-profiles.cfg +++ b/config-model/src/test/derived/rankingexpression/rank-profiles.cfg @@ -582,3 +582,91 @@ rankprofile[].normalizer[].name "normalize@3221316369@rrank" rankprofile[].normalizer[].input "nativeRank" rankprofile[].normalizer[].algo RRANK rankprofile[].normalizer[].kparam 60.0 +rankprofile[].name "function-with-arg-as-summary-feature" +rankprofile[].fef.property[].name "vespa.type.feature.attribute(t1)" +rankprofile[].fef.property[].value "tensor(m{},v[3])" +rankprofile[].fef.property[].name "rankingExpression(plusOne@478d886d33f680d).rankingScript" +rankprofile[].fef.property[].value "41 + 1" +rankprofile[].fef.property[].name "rankingExpression(useAttr@93d0729be0db6c70.30effc5f9cc0df93).rankingScript" +rankprofile[].fef.property[].value "attribute(foo1) * 17" +rankprofile[].fef.property[].name "rankingExpression(plusOne).rankingScript" +rankprofile[].fef.property[].value "x + 1" +rankprofile[].fef.property[].name "rankingExpression(useAttr).rankingScript" +rankprofile[].fef.property[].value "attribute(name) * weight" +rankprofile[].fef.property[].name "vespa.rank.firstphase" +rankprofile[].fef.property[].value "nativeRank" +rankprofile[].fef.property[].name "vespa.summary.feature" +rankprofile[].fef.property[].value "attribute(t1)" +rankprofile[].fef.property[].name "vespa.summary.feature" +rankprofile[].fef.property[].value "rankingExpression(plusOne@478d886d33f680d)" +rankprofile[].fef.property[].name "vespa.summary.feature" +rankprofile[].fef.property[].value "rankingExpression(useAttr@93d0729be0db6c70.30effc5f9cc0df93)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "rankingExpression(plusOne@478d886d33f680d)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "plusOne(41)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "rankingExpression(useAttr@93d0729be0db6c70.30effc5f9cc0df93)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "useAttr(foo1,17)" +rankprofile[].fef.property[].name "vespa.type.attribute.t1" +rankprofile[].fef.property[].value "tensor(m{},v[3])" +rankprofile[].name "function-with-arg-in-global-phase" +rankprofile[].fef.property[].name "rankingExpression(useAttr@6598f1aecaec0a2d.40876484d21a389).rankingScript" +rankprofile[].fef.property[].value "attribute(t1) * 42" +rankprofile[].fef.property[].name "rankingExpression(plusOne@31852fecfab75f29).rankingScript" +rankprofile[].fef.property[].value "2 + 1" +rankprofile[].fef.property[].name "rankingExpression(useAttr@93d0729be0db6c70.fe12ed266262cc16).rankingScript" +rankprofile[].fef.property[].value "attribute(foo1) * 1.25" +rankprofile[].fef.property[].name "rankingExpression(withIndirect@93d0729be0db6c70).rankingScript" +rankprofile[].fef.property[].value "rankingExpression(useAttr@93d0729be0db6c70.fe12ed266262cc16)" +rankprofile[].fef.property[].name "rankingExpression(plusOne@4a2b16f9107d7185).rankingScript" +rankprofile[].fef.property[].value "attribute(foo2) + 1" +rankprofile[].fef.property[].name "vespa.type.feature.useAttr(t1,42)" +rankprofile[].fef.property[].value "tensor(m{},v[3])" +rankprofile[].fef.property[].name "rankingExpression(plusOne).rankingScript" +rankprofile[].fef.property[].value "x + 1" +rankprofile[].fef.property[].name "rankingExpression(useAttr).rankingScript" +rankprofile[].fef.property[].value "attribute(name) * weight" +rankprofile[].fef.property[].name "rankingExpression(useAttr@2e0b6bb9bf541103.fe12ed266262cc16).rankingScript" +rankprofile[].fef.property[].value "attribute(name) * 1.25" +rankprofile[].fef.property[].name "rankingExpression(withIndirect).rankingScript" +rankprofile[].fef.property[].value "rankingExpression(useAttr@2e0b6bb9bf541103.fe12ed266262cc16)" +rankprofile[].fef.property[].name "vespa.rank.firstphase" +rankprofile[].fef.property[].value "nativeRank" +rankprofile[].fef.property[].name "vespa.rank.globalphase" +rankprofile[].fef.property[].value "rankingExpression(globalphase)" +rankprofile[].fef.property[].name "rankingExpression(globalphase).rankingScript" +rankprofile[].fef.property[].value "reduce(rankingExpression(useAttr@6598f1aecaec0a2d.40876484d21a389) + rankingExpression(plusOne@31852fecfab75f29) + rankingExpression(withIndirect@93d0729be0db6c70) + rankingExpression(plusOne@4a2b16f9107d7185), sum)" +rankprofile[].fef.property[].name "vespa.match.feature" +rankprofile[].fef.property[].value "rankingExpression(plusOne@4a2b16f9107d7185)" +rankprofile[].fef.property[].name "vespa.match.feature" +rankprofile[].fef.property[].value "rankingExpression(plusOne@31852fecfab75f29)" +rankprofile[].fef.property[].name "vespa.match.feature" +rankprofile[].fef.property[].value "rankingExpression(withIndirect@93d0729be0db6c70)" +rankprofile[].fef.property[].name "vespa.match.feature" +rankprofile[].fef.property[].value "rankingExpression(useAttr@6598f1aecaec0a2d.40876484d21a389)" +rankprofile[].fef.property[].name "vespa.hidden.matchfeature" +rankprofile[].fef.property[].value "plusOne(2)" +rankprofile[].fef.property[].name "vespa.hidden.matchfeature" +rankprofile[].fef.property[].value "withIndirect(foo1)" +rankprofile[].fef.property[].name "vespa.hidden.matchfeature" +rankprofile[].fef.property[].value "useAttr(t1,42)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "rankingExpression(plusOne@4a2b16f9107d7185)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "plusOne(attribute(foo2))" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "rankingExpression(plusOne@31852fecfab75f29)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "plusOne(2)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "rankingExpression(withIndirect@93d0729be0db6c70)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "withIndirect(foo1)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "rankingExpression(useAttr@6598f1aecaec0a2d.40876484d21a389)" +rankprofile[].fef.property[].name "vespa.feature.rename" +rankprofile[].fef.property[].value "useAttr(t1,42)" +rankprofile[].fef.property[].name "vespa.type.attribute.t1" +rankprofile[].fef.property[].value "tensor(m{},v[3])" diff --git a/config-model/src/test/derived/rankingexpression/rankexpression.sd b/config-model/src/test/derived/rankingexpression/rankexpression.sd index 15537f1f9d0..1ccf74bfe17 100644 --- a/config-model/src/test/derived/rankingexpression/rankexpression.sd +++ b/config-model/src/test/derived/rankingexpression/rankexpression.sd @@ -469,4 +469,42 @@ schema rankexpression { match-features: nativeRank } + rank-profile function-with-arg-as-summary-feature { + function plusOne(x) { + expression: x + 1 + } + function useAttr(name, weight) { + expression: attribute(name) * weight + } + first-phase { + expression: nativeRank + } + summary-features { + attribute(t1) + plusOne(41) + useAttr(foo1, 17) + } + } + + rank-profile function-with-arg-in-global-phase { + function plusOne(x) { + expression: x + 1 + } + function useAttr(name, weight) { + expression: attribute(name) * weight + } + function withIndirect(name) { + expression: useAttr(name, 1.25) + } + first-phase { + expression: nativeRank + } + global-phase { + expression: sum(useAttr(t1, 42) + plusOne(2) + withIndirect(foo1) + plusOne(attribute(foo2))) + } + match-features { + plusOne(attribute(foo2)) + } + } + } |