blob: df5f2e844afa193b95dfd8048cc28bd1b953ad6a (
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
|
// Copyright 2017 Yahoo Holdings. 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.collections.Pair;
import com.yahoo.component.ComponentId;
import com.yahoo.component.ComponentSpecification;
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.Collections;
import java.util.HashMap;
import java.util.List;
/**
* @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", Collections.<String>emptySet(), Collections.<String>emptySet()));
phases.add(new Phase("indexingEnd", Collections.<String>emptySet(), Collections.<String>emptySet()));
}
public IndexingDocprocChain() {
super(new ChainSpecification(new ComponentId(NAME),
new ChainSpecification.Inheritance(Collections.<ComponentSpecification>emptySet(),
Collections.<ComponentSpecification>emptySet()),
phases,
Collections.<ComponentSpecification>emptySet()),
new HashMap<>());
addInnerComponent(new IndexingProcessor());
}
@Override
public void getConfig(SpecialtokensConfig.Builder builder) {
}
}
|