aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/test/apps/zkfeed/schemas/laptop.sd
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2021-06-03 08:42:15 +0200
committerHarald Musum <musum@verizonmedia.com>2021-06-03 08:42:15 +0200
commit2a9e6b4fc298d654f04f23dd0965fb4e221b9ac6 (patch)
treed54b1b456a9b8e910830302642a8b89bc233ecb3 /configserver/src/test/apps/zkfeed/schemas/laptop.sd
parent6d7ba4368a8d81247fa66bfe60557dadaffb4108 (diff)
searchdefinitions -> schemas
Diffstat (limited to 'configserver/src/test/apps/zkfeed/schemas/laptop.sd')
-rw-r--r--configserver/src/test/apps/zkfeed/schemas/laptop.sd41
1 files changed, 41 insertions, 0 deletions
diff --git a/configserver/src/test/apps/zkfeed/schemas/laptop.sd b/configserver/src/test/apps/zkfeed/schemas/laptop.sd
new file mode 100644
index 00000000000..21a76ad605c
--- /dev/null
+++ b/configserver/src/test/apps/zkfeed/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 {
+ }
+
+}