diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /config-model/src/test/derived/fieldlength |
Publish
Diffstat (limited to 'config-model/src/test/derived/fieldlength')
-rw-r--r-- | config-model/src/test/derived/fieldlength/attributes.cfg | 4 | ||||
-rw-r--r-- | config-model/src/test/derived/fieldlength/fieldlength.sd | 73 |
2 files changed, 77 insertions, 0 deletions
diff --git a/config-model/src/test/derived/fieldlength/attributes.cfg b/config-model/src/test/derived/fieldlength/attributes.cfg new file mode 100644 index 00000000000..29fd2f986f0 --- /dev/null +++ b/config-model/src/test/derived/fieldlength/attributes.cfg @@ -0,0 +1,4 @@ +attribute[1] +attribute[0].name "year" +attribute[0].datatype INT32 +attribute[0].collectiontype SINGLE diff --git a/config-model/src/test/derived/fieldlength/fieldlength.sd b/config-model/src/test/derived/fieldlength/fieldlength.sd new file mode 100644 index 00000000000..df42b822dc2 --- /dev/null +++ b/config-model/src/test/derived/fieldlength/fieldlength.sd @@ -0,0 +1,73 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search fieldlength { + + document fieldlength { + + field artist type string { + indexing: summary | index + # index-to: default + } + + field title type string { + indexing: summary | index + # index-to: default + } + + field song type string { + indexing: summary | index + # index-to: all, song + } + + field album type string { + indexing: summary | index + # index-to: all, album, all2 + } + + field composer type string { + indexing: summary | index + # index-to: all, composer, all2 + } + + field label type string { + indexing: summary | index + } + + field year type int { + indexing: summary | attribute + } + + } + + rank-profile default { + first-phase { + expression: classicRank + } + second-phase { + expression: if(3>2,4,2) + rerank-count: 10 + } + rank-features: attribute(baz).out sum(value(3)) + rank-features: classicRank + ignore-default-rank-features + + rank-properties { + foo: "bar, baz" + qux: "quux" + foo: "foobar" + } + + } + + rank-profile static { + first-phase { + expression: attribute + } + second-phase { + expression: file:../rankexpression/rankexpression + } + summary-features: sum(value(1),value(2)) + } + +} + + |