diff options
author | Harald Musum <musum@verizonmedia.com> | 2021-06-03 11:03:50 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2021-06-03 11:03:50 +0200 |
commit | aab0425ec1b2d683708781f9247c4b164b04739d (patch) | |
tree | e7f4c3dd58ee44cb00be34f930fbf7e8d8a4df64 /vespa-documentgen-plugin/src/test/resources/schemas/complex/music2.sd | |
parent | 2a85cadde1ed663f1ba04cfede6ce84986b79007 (diff) |
Move test data
Diffstat (limited to 'vespa-documentgen-plugin/src/test/resources/schemas/complex/music2.sd')
-rw-r--r-- | vespa-documentgen-plugin/src/test/resources/schemas/complex/music2.sd | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/vespa-documentgen-plugin/src/test/resources/schemas/complex/music2.sd b/vespa-documentgen-plugin/src/test/resources/schemas/complex/music2.sd new file mode 100644 index 00000000000..2e2d96ecdec --- /dev/null +++ b/vespa-documentgen-plugin/src/test/resources/schemas/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 + } + +} |