aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/examples/indexing.sd
blob: e880cd4831be59140e562a63f5fbf4efece6d928 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
# A configuration doing a lot of IL magic in indexing statement
search indexing {
    document indexing {

    }
    field number type int {
        indexing {
            10000 | set_var foo;
            5000 | set_var bar;
            get_var foo + get_var bar | set_var addition;
            get_var foo - get_var bar | set_var subtraction;
            get_var foo * get_var bar | set_var multiplication;
            get_var foo / get_var bar | set_var division;
            get_var foo % get_var bar | set_var modulus;
        }
    }
}