aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-documentgen-plugin/etc/complex/music2.sd
blob: 17736ab4e79c91647cf542c3947567c156c2ed50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright Yahoo. 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
         indexing: index|summary
      }
      field disp_song type string {
         indexing: summary
      }
      field song type string {
         indexing: index
      }
      field isbn type string {
         bolding: on
         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
   }

}