aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/examples/nextgen/summaryfield.sd
blob: 99c73d1be537460ebe4540e64ffcb9ef5cee9e1f (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 Yahoo. 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 type array<string> {
            source: mytags
        }
        summary sometags type array<string> {
            source: mytags
            matched-elements-only
        }
    }
}