diff options
Diffstat (limited to 'vespa-documentgen-plugin/etc/localapp/video.sd')
-rw-r--r-- | vespa-documentgen-plugin/etc/localapp/video.sd | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/vespa-documentgen-plugin/etc/localapp/video.sd b/vespa-documentgen-plugin/etc/localapp/video.sd new file mode 100644 index 00000000000..fc7f58298c1 --- /dev/null +++ b/vespa-documentgen-plugin/etc/localapp/video.sd @@ -0,0 +1,54 @@ +# 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 + # index-to: default, director + indexing: index|summary + } + field disp_actor type string { + bolding: on + # index-to: default, disp_actor + indexing: index|summary + } + field actor type string { + bolding: on + # index-to: default, actor + indexing: index|summary + } + field fmt type string { + # index-to: default, fmt + indexing: index|summary + } + field isbn type string { + bolding: on + # index-to: default, isbn + 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: nativeRank + } + } + rank-profile rp1 inherits default { + #static-rank: weight1 + } + rank-profile rp2 inherits default { + #static-rank: weight2 + } +} |