aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/examples/nextgen/summaryfield.sd
blob: 906d5441e557bb5fa5edd071d4b1401ae40b94a4 (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 {
            source: foo
        }
        summary alltags {
            source: mytags
        }
        summary sometags {
            source: mytags
            matched-elements-only
        }
    }
}