summaryrefslogtreecommitdiffstats
path: root/configserver/src/test/apps/zkfeed/searchdefinitions/sock.sd
diff options
context:
space:
mode:
Diffstat (limited to 'configserver/src/test/apps/zkfeed/searchdefinitions/sock.sd')
-rw-r--r--configserver/src/test/apps/zkfeed/searchdefinitions/sock.sd27
1 files changed, 27 insertions, 0 deletions
diff --git a/configserver/src/test/apps/zkfeed/searchdefinitions/sock.sd b/configserver/src/test/apps/zkfeed/searchdefinitions/sock.sd
new file mode 100644
index 00000000000..1620d790b65
--- /dev/null
+++ b/configserver/src/test/apps/zkfeed/searchdefinitions/sock.sd
@@ -0,0 +1,27 @@
+# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search sock {
+
+ document sock inherits product {
+
+ field size type int {
+ indexing: index | summary | attribute
+ }
+
+ field color type string {
+ indexing: summary
+ index: prefix
+ }
+
+ field brand type string {
+ indexing: summary
+ }
+
+ }
+
+ rank-profile other {
+ second-phase {
+ expression: fieldMatch(color).fieldCompleteness + fieldMatch(brand).proximity
+ }
+ }
+
+}