summaryrefslogtreecommitdiffstats
path: root/vespa-documentgen-plugin/src/test/resources/schemas/complex/video.sd
diff options
context:
space:
mode:
Diffstat (limited to 'vespa-documentgen-plugin/src/test/resources/schemas/complex/video.sd')
-rw-r--r--vespa-documentgen-plugin/src/test/resources/schemas/complex/video.sd49
1 files changed, 49 insertions, 0 deletions
diff --git a/vespa-documentgen-plugin/src/test/resources/schemas/complex/video.sd b/vespa-documentgen-plugin/src/test/resources/schemas/complex/video.sd
new file mode 100644
index 00000000000..0b0298a162c
--- /dev/null
+++ b/vespa-documentgen-plugin/src/test/resources/schemas/complex/video.sd
@@ -0,0 +1,49 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search video {
+ document video inherits common {
+ field director type string {
+ bolding: on
+ indexing: index|summary
+ }
+ field disp_actor type string {
+ bolding: on
+ indexing: index|summary
+ }
+ field actor type string {
+ bolding: on
+ indexing: index|summary
+ }
+ field fmt type string {
+ indexing: index|summary
+ }
+ field isbn type string {
+ bolding: on
+ indexing: index|summary
+ }
+ field year type int {
+ indexing: attribute|index|summary
+ }
+ }
+
+ field sw1 type float {
+ indexing {
+ input weight * 6 + input w1 + input w2 | summary;
+ }
+ }
+
+ field didinteger type array<int> {
+ indexing: input did | split " " | for_each { to_int } | attribute
+ }
+
+ rank-profile default {
+ first-phase {
+ expression: file:non-existing.expression
+ }
+ }
+ rank-profile rp1 inherits default {
+ #static-rank: weight1
+ }
+ rank-profile rp2 inherits default {
+ #static-rank: weight2
+ }
+}