aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/scalar_constant/test.sd
blob: 1f3c7709a88d660ff0a7c1d5efd15ba9aeeb3210 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

schema test {
    document test {
        field title type string {
            indexing: index | summary
        }
    }
    rank-profile default {
        constants {
            constant(foobar) double: 0.5
        }
        function makevector() {
            expression: tensor(x[3]):[0.25, constant(foobar), 0.75]
        }
        first-phase {
            expression: sum(makevector())
        }
    }
}