aboutsummaryrefslogtreecommitdiffstats
path: root/documentgen-test/etc/complex/video.sd
blob: a9adc201c5da1451b588fa12b3793041f978ab9f (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 Vespa.ai. 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|summary
      }
   }

   field sw1 type float {
      indexing {
        input weight_src * 6 + input w1_src + input w2_src | 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
   }
}