aboutsummaryrefslogtreecommitdiffstats
path: root/streamingvisitors/src/tests/searchvisitor/cfg/test.sd
blob: 319c23827e49e7b12c6117bde45b177db9a40bca (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 id type int {
      indexing: attribute | summary 
    }
  }
  rank-profile default {
    first-phase {
      expression: attribute(id) + 10
    }
  }
  rank-profile match_features inherits default {
    function myfunc() {
      expression: attribute(id) + 20
    }
    match-features: attribute(id) myfunc()
  }
}