aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/search/IndexingDocprocChain.java
blob: 0446a6c5dce5629131648c25725aa4a92f3b156a (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.search;

import com.yahoo.component.ComponentId;
import com.yahoo.component.chain.Phase;
import com.yahoo.component.chain.model.ChainSpecification;
import com.yahoo.vespa.configdefinition.SpecialtokensConfig;
import com.yahoo.vespa.model.container.docproc.DocprocChain;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
 * @author Einar M R Rosenvinge
 */
public class IndexingDocprocChain extends DocprocChain implements SpecialtokensConfig.Producer {

    public static final String NAME = "indexing";
    private static final List<Phase> phases = new ArrayList<>(2);

    static {
        phases.add(new Phase("indexingStart", Set.of(), Set.of()));
        phases.add(new Phase("indexingEnd", Set.of(), Set.of()));
    }

    public IndexingDocprocChain() {
        super(new ChainSpecification(new ComponentId(NAME),
                                     new ChainSpecification.Inheritance(Set.of(), Set.of()),
                                     phases,
                                     Set.of()),
              new HashMap<>());
        addInnerComponent(new IndexingProcessor());
    }

    @Override
    public void getConfig(SpecialtokensConfig.Builder builder) {
    }

}