aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/gemini2/gemini.sd
blob: 366823df04f3f5a12f1d1cfe0a777f469ba489ae (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
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema gemini {

    document gemini {
        field right type string {
            indexing: attribute
        }
        field wrong type string {
            indexing: attribute
        }
    }

    rank-profile test {

        function wrapper2(x) {
            expression: x
        }

		function wrapper1(x) {
			expression: wrapper2(x)
		}

        function toplevel() {
            expression: wrapper1(attribute(right))
        }

        function interfering() {
            expression: wrapper1(attribute(wrong))
        }

    }

}