summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/rankprofileinheritance/child.sd
blob: 8348a62838c05396d6c14adc5232c855dcfec0c0 (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
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema child {

  document child inherits parent1, parent2 {

    field field3 type int {
      indexing: attribute
    }

  }

  rank-profile profile3 inherits profile1 {

    function function3() {
      expression: attribute(field3) + 5
    }

    summary-features {
      function3
      attribute(field3)
    }

    match-features inherits profile1 {
      function3
    }

  }

  rank-profile profile4 inherits profile2 {

    function function4() {
      expression: attribute(field3) + 5
    }

    summary-features inherits profile2 {
      function4
      attribute(field3)
    }

  }

  rank-profile profile5 inherits profile1 {
    match-features {
      attribute(field3)
    }
  }

  rank-profile profile6 inherits profile1 {
    summary-features { }
    match-features { }
  }

}