aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/sorting/sorting.sd
blob: c4be83cd21a25c13ea996cbf61dea24fa30e7abb (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema sorting {

  document sorting {

    field syntaxcheck1a type string {
      indexing: attribute
      attribute {
        sorting: ascending
        sorting: function: uca
        sorting: strength: primary
        sorting: locale: en_US
      }
    }
    field syntaxcheck2a type string {
      indexing: attribute
      attribute {
        sorting: descending
        sorting: function: raw
        sorting: strength: secondary
      }
    }
    field syntaxcheck3a type string {
      indexing: attribute
      attribute {
        sorting: ascending
        sorting: function: lowercase
        sorting: strength: tertiary
      }
    }
    field syntaxcheck4a type string {
      indexing: attribute
      attribute {
        sorting: descending
        sorting: function: uca
        sorting: strength: quaternary
        sorting: locale: en_US
      }
    }
    field syntaxcheck5a type string {
      indexing: attribute
      attribute {
        sorting: ascending
        sorting: function: raw
        sorting: strength: identical
      }
    }

    field syntaxcheck1b type string {
      indexing: attribute
      attribute {
        sorting {
          ascending
          function: uca
          strength: primary
          locale: en_US
        }
      }
    }


    field syntaxcheck2b type string {
      indexing: attribute
      attribute {
        sorting {
          descending
          function: raw
          strength: secondary
        }
      }
    }

    field syntaxcheck3b type string {
      indexing: attribute
      attribute {
        sorting {
          ascending
          function: lowercase
          strength: tertiary
        }
      }
    }

    field syntaxcheck4b type string {
      indexing: attribute
      attribute {
        sorting {
          descending
          function: uca
          strength: quaternary
          locale: en_US
        }
      }
    }

    field syntaxcheck5b type string {
      indexing: attribute
      attribute {
        sorting {
          ascending
          function: raw
          strength: identical
        }
      }
    }

    field infieldonly type string {
      indexing: attribute
      sorting {
        descending
        function: lowercase
        strength: secondary
        locale: en_US
      }
    }
  }

}