diff options
Diffstat (limited to 'config-model/src/test/cfg/application/app1/schemas/laptop.sd')
-rw-r--r-- | config-model/src/test/cfg/application/app1/schemas/laptop.sd | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/config-model/src/test/cfg/application/app1/schemas/laptop.sd b/config-model/src/test/cfg/application/app1/schemas/laptop.sd new file mode 100644 index 00000000000..21a76ad605c --- /dev/null +++ b/config-model/src/test/cfg/application/app1/schemas/laptop.sd @@ -0,0 +1,41 @@ +# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search laptop { + + document laptop inherits product { + + field batterycapacity type int { + indexing: attribute + } + + field location_str type array<string> { + + } + } + + field batteryrank type int { + indexing: input batterycapacity | attribute + } + + field location type array<position> { + indexing: input location_str | for_each { to_pos } | attribute + } + + rank-profile default { + second-phase { + expression: fieldMatch(title)*fieldMatch(title).weight + rerank-count: 150 + } + summary-features: fieldMatch(title) + + rank-features: attribute(batterycapacity) match.weight.batterycapacity + + rank-properties { + fieldMatch(title).maxOccurrences : 40 + fieldMatch(title).proximityLimit : 5 + } + } + + rank-profile batteryranked { + } + +} |