aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-documentgen-plugin/etc/localapp/video.sd
blob: 03c5c82ed64c7f9430a81a4cd7b65186253d4337 (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
# Copyright Yahoo. 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: nativeRank
      }
   }
   rank-profile rp1 inherits default {
      #static-rank: weight1
   }
   rank-profile rp2 inherits default {
      #static-rank: weight2
   }
}