blob: 5c05e0ba941d670800cafcfe69a79920a693d1bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Copyright Yahoo. 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())
}
}
}
|