aboutsummaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-06-06 09:36:51 +0200
committerJon Bratseth <bratseth@verizonmedia.com>2019-06-06 09:36:51 +0200
commit3344c999c2721b75666e2e49f7fd6f15c9fe1353 (patch)
tree1d0084ff7c5037774d8740ce9dd5a7777c9367f7 /config-model
parent3e1ef49b358ef027311d1d44d846695ea46125b8 (diff)
Expression file references in Vespa models
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/test/derived/fieldlength/attributes.cfg3
-rw-r--r--config-model/src/test/derived/fieldlength/fieldlength.sd73
2 files changed, 0 insertions, 76 deletions
diff --git a/config-model/src/test/derived/fieldlength/attributes.cfg b/config-model/src/test/derived/fieldlength/attributes.cfg
deleted file mode 100644
index 136fb14eda9..00000000000
--- a/config-model/src/test/derived/fieldlength/attributes.cfg
+++ /dev/null
@@ -1,3 +0,0 @@
-attribute[].name "year"
-attribute[].datatype INT32
-attribute[].collectiontype SINGLE
diff --git a/config-model/src/test/derived/fieldlength/fieldlength.sd b/config-model/src/test/derived/fieldlength/fieldlength.sd
deleted file mode 100644
index 92606e87114..00000000000
--- a/config-model/src/test/derived/fieldlength/fieldlength.sd
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 2017 Yahoo Holdings. 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))
- }
-
-}
-
-