aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/arrays/arrays.sd
blob: 928896fade64f7627176bdc56c729f7d3e0b930f (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
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema arrays {

  document arrays {

    field tags type array<string> {
      indexing: summary | index
    }

    field ratings type int[] {
      indexing: summary | index
    }

    field a type string {
      indexing: index
    }

    field b type array<string> {
      indexing: index  | attribute
    }

    field c type weightedset<string> {
      indexing: summary | index
    }

  }

  fieldset default {
      fields: a, b, c
  }

}