aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/searchchain/PhaseNames.java
blob: 32fa8e405265fc2871c16e0b2a47b21b9e35adb5 (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.searchchain;

/**
 * Helper class for ordering searchers. Searchers may use these names in their
 * {@literal @}Before and {@literal @}After annotations, though in general
 * a searcher should depend on some explicit functionality, not these
 * checkpoints.
 *
 * @author Steinar Knutsen
 */
public final class PhaseNames {

    private PhaseNames() {
    }

    /**
     * A checkpoint where the query is not yet transformed in any way. RAW_QUERY
     * is the first checkpoint not provided by some searcher.
     */
    public static final String RAW_QUERY = "rawQuery";

    /**
     * A checkpoint where as many query transformers as practically possible has
     * been run. TRANSFORMED_QUERY is the first checkpoint after RAW_QUERY.
     */
    public static final String TRANSFORMED_QUERY = "transformedQuery";

    /**
     * A checkpoint where results from different backends have been flattened
     * into a single result. BLENDED_RESULT is the first checkpoint after
     * TRANSFORMED_QUERY.
     */
    public static final String BLENDED_RESULT = "blendedResult";

    /**
     * A checkpoint where data from different backends are not yet merged.
     * UNBLENDED_RESULT is the first checkpoint after BLENDED_RESULT.
     */
    public static final String UNBLENDED_RESULT = "unblendedResult";

    /**
     * The last checkpoint in a search chain not provided by any searcher.
     */
    public static final String BACKEND = "backend";

}