summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/examples/nextgen/summaryfield.sd
blob: 5a5747359a02c400041968dfba07248393c93eb3 (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
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search summaryfield {
    document summaryfield {
        field foo type string {
            indexing: index | summary
            summary bar: full
        }
        field mytags type array<string> {
            indexing: index
        }
    }
    document-summary baz {
        summary cox type string {
            source: bar
        }
        summary alltags {
            source: mytags
        }
        summary sometags {
            source: mytags
            matched-elements-only
        }
    }
}