aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/resources/schema/searchchains.rnc
blob: 993a20888597f2847d792234196d62bfbfc58f0f (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
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#Schema for search chains and searchers inside the searchchains section.

include "federation.rnc"

SearchChainInFederation =
    ComponentId &
    SearchChainInheritanceInFederation &
    attribute searchers { text }? &
    Searcher* &
    Phase* &
    GenericConfig*

SearchChainInheritanceInFederation =
    attribute inherits { text }? &
    attribute excludes { text }?

Searcher =
    RegularSearcher |
    FederationSearcher

RegularSearcher =
    element searcher {
        BundleSpec &
        GenericSearcherOrDocumentProcessor
    }


GenericSearcherOrDocumentProcessor =
    ComponentId &
    SearcherOrDocumentProcessorDependencies &
    GenericConfig*

SearcherOrDocumentProcessorDependencies =
    Dependencies &
    attribute provides { text }? &
    element provides { xsd:Name }*

Dependencies =
    attribute before { text }? &
    attribute after { text }? &
    element   before { xsd:Name }* &
    element   after { xsd:Name }*

Phase =
    element phase {
        ComponentId &
        Dependencies
    }