summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/illegal_sideways_inheritance/child2.sd
blob: cf91b48bd07df6e2598c1fe36618bd092167da19 (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
# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema child2 {

  document child2 {
    field field1 type int {
      indexing: attribute
    }
  }

  rank-profile parent {
    first-phase {
      expression: function1()
    }
    function function1() {
      expression: attribute(field1) + 7
    }
    
    summary-features {
      function1
      attribute(field1)
    }
  }

}