diff options
Diffstat (limited to 'vespa-documentgen-plugin/etc/complex/music2.sd')
-rw-r--r-- | vespa-documentgen-plugin/etc/complex/music2.sd | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/vespa-documentgen-plugin/etc/complex/music2.sd b/vespa-documentgen-plugin/etc/complex/music2.sd new file mode 100644 index 00000000000..2e2d96ecdec --- /dev/null +++ b/vespa-documentgen-plugin/etc/complex/music2.sd @@ -0,0 +1,74 @@ +# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +search music2 { + document music2 inherits common { + field artist type string { + bolding: on + # index-to: default, artist + indexing: index|summary + } + field disp_song type string { + indexing: summary + } + field song type string { + # index-to: default, song + indexing: index + } + field isbn type string { + bolding: on + # index-to: default, isbn + indexing: index|summary + } + field year type int { + indexing: attribute|index|summary + } + annotation recordlabel {} + + annotation person { + field name type string { } + } + + annotation artist inherits person { + field instrument type int { } + } + + annotation date { + field exacttime type long { } + } + + annotation place { + field lat type long { } + field lon type long { } + } + + annotation event { + field description type string { } + field person type annotationreference<person> { } + field date type annotationreference<date> { } + field place type annotationreference<place> { } + } + + } + + 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 + } + +} |