diff options
Diffstat (limited to 'config-model/src/test')
-rw-r--r-- | config-model/src/test/derived/rankingexpression/rank-profiles.cfg | 17 | ||||
-rw-r--r-- | config-model/src/test/derived/rankingexpression/rankexpression.sd | 16 |
2 files changed, 33 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 9291a690f7c..6ff063c785c 100644 --- a/config-model/src/test/derived/rankingexpression/rank-profiles.cfg +++ b/config-model/src/test/derived/rankingexpression/rank-profiles.cfg @@ -396,3 +396,20 @@ rankprofile[].fef.property[].name "rankingExpression(mybooleanexpression).rankin rankprofile[].fef.property[].value "5.0" rankprofile[].fef.property[].name "vespa.type.attribute.t1" rankprofile[].fef.property[].value "tensor(m{},v[3])" +rankprofile[].name "withglobalphase" +rankprofile[].fef.property[].name "rankingExpression(myplus).rankingScript" +rankprofile[].fef.property[].value "attribute(foo1) + attribute(foo2)" +rankprofile[].fef.property[].name "rankingExpression(mymul).rankingScript" +rankprofile[].fef.property[].value "attribute(t1) * query(fromq)" +rankprofile[].fef.property[].name "rankingExpression(mymul).type" +rankprofile[].fef.property[].value "tensor(m{},v[3])" +rankprofile[].fef.property[].name "vespa.rank.firstphase" +rankprofile[].fef.property[].value "attribute(foo1)" +rankprofile[].fef.property[].name "vespa.rank.globalphase" +rankprofile[].fef.property[].value "rankingExpression(globalphase)" +rankprofile[].fef.property[].name "rankingExpression(globalphase).rankingScript" +rankprofile[].fef.property[].value "rankingExpression(myplus) + reduce(rankingExpression(mymul), sum) + firstPhase" +rankprofile[].fef.property[].name "vespa.globalphase.rerankcount" +rankprofile[].fef.property[].value "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 7d8c79da5fb..015767e3070 100644 --- a/config-model/src/test/derived/rankingexpression/rankexpression.sd +++ b/config-model/src/test/derived/rankingexpression/rankexpression.sd @@ -369,4 +369,20 @@ schema rankexpression { } } + rank-profile withglobalphase { + function myplus() { + expression: attribute(foo1)+attribute(foo2) + } + function mymul() { + expression: attribute(t1)*query(fromq) + } + first-phase { + expression: attribute(foo1) + } + global-phase { + expression: myplus()+sum(mymul())+firstPhase + rerank-count: 42 + } + } + } |