diff options
author | Arne Juul <arnej@vespa.ai> | 2023-10-18 11:32:46 +0000 |
---|---|---|
committer | Arne Juul <arnej@vespa.ai> | 2023-10-18 13:54:06 +0000 |
commit | 9af2a2c2b78510bec7b4f8017bcb98e1da7e3e2a (patch) | |
tree | 4bfd7bbbc999a0251ab55e6a189720cc74f61ebe /container-search/src/test/resources | |
parent | 24f8d5ab63a193aeb6660eafb83a22956a679a75 (diff) |
add defaults extraction and unit test
Diffstat (limited to 'container-search/src/test/resources')
-rw-r--r-- | container-search/src/test/resources/config/medium/rank-profiles.cfg | 55 | ||||
-rw-r--r-- | container-search/src/test/resources/config/qf_defaults/rank-profiles.cfg | 23 |
2 files changed, 78 insertions, 0 deletions
diff --git a/container-search/src/test/resources/config/medium/rank-profiles.cfg b/container-search/src/test/resources/config/medium/rank-profiles.cfg new file mode 100644 index 00000000000..5a609f70cef --- /dev/null +++ b/container-search/src/test/resources/config/medium/rank-profiles.cfg @@ -0,0 +1,55 @@ +rankprofile[0].name "withglobalphase" +rankprofile[0].fef.property[0].name "rankingExpression(myplus).rankingScript" +rankprofile[0].fef.property[0].value "attribute(foo1) + attribute(foo2)" +rankprofile[0].fef.property[1].name "rankingExpression(mymul).rankingScript" +rankprofile[0].fef.property[1].value "attribute(t1) * query(fromq)" +rankprofile[0].fef.property[2].name "rankingExpression(mymul).type" +rankprofile[0].fef.property[2].value "tensor(m{},v[3])" +rankprofile[0].fef.property[3].name "vespa.type.feature.attribute(t1)" +rankprofile[0].fef.property[3].value "tensor(m{},v[3])" +rankprofile[0].fef.property[4].name "vespa.rank.firstphase" +rankprofile[0].fef.property[4].value "attribute(foo1)" +rankprofile[0].fef.property[5].name "vespa.rank.globalphase" +rankprofile[0].fef.property[5].value "rankingExpression(globalphase)" +rankprofile[0].fef.property[6].name "rankingExpression(globalphase).rankingScript" +rankprofile[0].fef.property[6].value "rankingExpression(myplus) + reduce(rankingExpression(mymul), sum) + firstPhase + term(0).significance + fieldLength(artist) + fieldTermMatch(title,0).occurrences + termDistance(title,1,2).reverse + closeness(field,t1)" +rankprofile[0].fef.property[7].name "vespa.match.feature" +rankprofile[0].fef.property[7].value "fieldLength(artist)" +rankprofile[0].fef.property[8].name "vespa.match.feature" +rankprofile[0].fef.property[8].value "term(0).significance" +rankprofile[0].fef.property[9].name "vespa.match.feature" +rankprofile[0].fef.property[9].value "closeness(field,t1)" +rankprofile[0].fef.property[10].name "vespa.match.feature" +rankprofile[0].fef.property[10].value "termDistance(title,1,2).reverse" +rankprofile[0].fef.property[11].name "vespa.match.feature" +rankprofile[0].fef.property[11].value "firstPhase" +rankprofile[0].fef.property[12].name "vespa.match.feature" +rankprofile[0].fef.property[12].value "attribute(t1)" +rankprofile[0].fef.property[13].name "vespa.match.feature" +rankprofile[0].fef.property[13].value "attribute(foo1)" +rankprofile[0].fef.property[14].name "vespa.match.feature" +rankprofile[0].fef.property[14].value "fieldTermMatch(title,0).occurrences" +rankprofile[0].fef.property[15].name "vespa.match.feature" +rankprofile[0].fef.property[15].value "attribute(foo2)" +rankprofile[0].fef.property[16].name "vespa.hidden.matchfeature" +rankprofile[0].fef.property[16].value "fieldLength(artist)" +rankprofile[0].fef.property[17].name "vespa.hidden.matchfeature" +rankprofile[0].fef.property[17].value "term(0).significance" +rankprofile[0].fef.property[18].name "vespa.hidden.matchfeature" +rankprofile[0].fef.property[18].value "closeness(field,t1)" +rankprofile[0].fef.property[19].name "vespa.hidden.matchfeature" +rankprofile[0].fef.property[19].value "termDistance(title,1,2).reverse" +rankprofile[0].fef.property[20].name "vespa.hidden.matchfeature" +rankprofile[0].fef.property[20].value "firstPhase" +rankprofile[0].fef.property[21].name "vespa.hidden.matchfeature" +rankprofile[0].fef.property[21].value "attribute(t1)" +rankprofile[0].fef.property[22].name "vespa.hidden.matchfeature" +rankprofile[0].fef.property[22].value "attribute(foo1)" +rankprofile[0].fef.property[23].name "vespa.hidden.matchfeature" +rankprofile[0].fef.property[23].value "fieldTermMatch(title,0).occurrences" +rankprofile[0].fef.property[24].name "vespa.hidden.matchfeature" +rankprofile[0].fef.property[24].value "attribute(foo2)" +rankprofile[0].fef.property[25].name "vespa.globalphase.rerankcount" +rankprofile[0].fef.property[25].value "42" +rankprofile[0].fef.property[26].name "vespa.type.attribute.t1" +rankprofile[0].fef.property[26].value "tensor(m{},v[3])" diff --git a/container-search/src/test/resources/config/qf_defaults/rank-profiles.cfg b/container-search/src/test/resources/config/qf_defaults/rank-profiles.cfg new file mode 100644 index 00000000000..731064c4dd6 --- /dev/null +++ b/container-search/src/test/resources/config/qf_defaults/rank-profiles.cfg @@ -0,0 +1,23 @@ +rankprofile[0].name "gp_with_qf_defaults" +rankprofile[0].fef.property[0].name "vespa.rank.firstphase" +rankprofile[0].fef.property[0].value "attribute(foo1)" +rankprofile[0].fef.property[1].name "vespa.rank.globalphase" +rankprofile[0].fef.property[1].value "rankingExpression(globalphase)" +rankprofile[0].fef.property[2].name "rankingExpression(globalphase).rankingScript" +rankprofile[0].fef.property[2].value "reduce(query(m_no_def) * query(v_no_def) * query(v_has_def) * attribute(t1), sum) + attribute(bar3) * query(w_no_def) * query(w_has_def)" +rankprofile[0].fef.property[3].name "vespa.match.feature" +rankprofile[0].fef.property[3].value "attribute(t1)" +rankprofile[0].fef.property[4].name "vespa.match.feature" +rankprofile[0].fef.property[4].value "attribute(bar3)" +rankprofile[0].fef.property[5].name "vespa.type.attribute.t1" +rankprofile[0].fef.property[5].value "tensor(m{},v[3])" +rankprofile[0].fef.property[6].name "vespa.type.query.m_no_def" +rankprofile[0].fef.property[6].value "tensor(m{})" +rankprofile[0].fef.property[7].name "vespa.type.query.v_no_def" +rankprofile[0].fef.property[7].value "tensor(v[3])" +rankprofile[0].fef.property[8].name "query(w_has_def)" +rankprofile[0].fef.property[8].value "1.0" +rankprofile[0].fef.property[9].name "vespa.type.query.v_has_def" +rankprofile[0].fef.property[9].value "tensor(v[3])" +rankprofile[0].fef.property[10].name "query(v_has_def)" +rankprofile[0].fef.property[10].value "tensor(v[3]):{{v:0}:2.0, {v:1}:0.25, {v:2}:1.5}" |