diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-09-17 13:01:55 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-09-17 13:01:55 +0200 |
commit | 28c446a1bd9168ced3e7056599bb2d833824533b (patch) | |
tree | a3297634a7699f93568847807daf75610979b7aa /config-model/src/test/examples | |
parent | 769aec13c58050c6e4edffcbb0f8bfc82d12cb30 (diff) |
support 'function' in addition to 'macro' in rank profiles
Diffstat (limited to 'config-model/src/test/examples')
-rw-r--r-- | config-model/src/test/examples/rankingexpressionfunction/rankingexpressionfunction.sd | 4 | ||||
-rw-r--r-- | config-model/src/test/examples/simple.sd | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/test/examples/rankingexpressionfunction/rankingexpressionfunction.sd b/config-model/src/test/examples/rankingexpressionfunction/rankingexpressionfunction.sd index 7f09095c5e7..6e399c03a2c 100644 --- a/config-model/src/test/examples/rankingexpressionfunction/rankingexpressionfunction.sd +++ b/config-model/src/test/examples/rankingexpressionfunction/rankingexpressionfunction.sd @@ -22,11 +22,11 @@ search rankexpression { } rank-profile macros { - macro titlematch$(var1, var2) { + function titlematch$(var1, var2) { expression: file: titlematch } - macro artistmatch() { + function artistmatch() { expression: 78+closeness(distance) } diff --git a/config-model/src/test/examples/simple.sd b/config-model/src/test/examples/simple.sd index 96b0fa98098..0435ea439df 100644 --- a/config-model/src/test/examples/simple.sd +++ b/config-model/src/test/examples/simple.sd @@ -121,7 +121,7 @@ search simple { second-phase { rerank-count: 99 } - macro openTicket() { + function openTicket() { expression: if(attribute(status) == "accepted",1, if(attribute(status) == "new",1,if(attribute(status) == "reopened",1,0))) } } |