aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/attributerank/attributerank.sd
blob: 6d6ee4e8bb1aa1e5eadf15f6f0dd63e850140c05 (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
34
35
36
37
38
39
40
41
42
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema attributerank {

  document attributerank {

    field singlebyte type byte {
      indexing: attribute
    }
    field singleint type int {
      indexing: attribute
    }
    field singlelong type long {
      indexing: attribute
    }
    field singlefloat type float {
      indexing: attribute
      rank-type: identity
    }
    field singledouble type double {
      indexing: attribute
      rank-type: identity
    }
    field singlestring type string {
      indexing: attribute
      rank-type: identity
    }
  }

  rank-profile firstprofile inherits default {
    rank-type singlestring: default
  }

  rank-profile secondprofile {
    rank-type singlebyte: identity
    rank-type singleint: identity
    rank-type singlelong: identity
    rank-type singlefloat: identity
    rank-type singledouble: identity
    rank-type singlestring: identity
  }

}