aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/parser/ParsedRankProfile.java
blob: 3347bc796126537cf5d3635dcbe3f9bd39977086 (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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.parser;

import com.yahoo.searchdefinition.RankProfile.MatchPhaseSettings;
import com.yahoo.searchdefinition.RankProfile.MutateOperation;
import com.yahoo.searchlib.rankingexpression.FeatureList;
import com.yahoo.searchlib.rankingexpression.evaluation.TensorValue;
import com.yahoo.searchlib.rankingexpression.evaluation.Value;

class ParsedRankProfile {

    private final String name;

    ParsedRankProfile(String name) {
        this.name = name;
    }

    public String getName() { return name; }

    void addSummaryFeatures(FeatureList features) {}
    void addMatchFeatures(FeatureList features) {}
    void addRankFeatures(FeatureList features) {}

    void inherit(String other) {}
    void setInheritedSummaryFeatures(String other) {}

    void addFieldRankType(String field, String type) {}
    void addFieldRankWeight(String field, int weight) {}
    void addFieldRankFilter(String field, boolean filter) {}
    void setSecondPhaseRanking(String expression) {}
    void setRerankCount(int count) {}
    void setFirstPhaseRanking(String expression) {}
    void setKeepRankCount(int count) {}
    void setRankScoreDropLimit(double limit) {}
    void setMatchPhaseSettings(MatchPhaseSettings settings) {}
    void addFunction(ParsedRankFunction func) {}
    void addMutateOperation(MutateOperation.Phase phase, String attrName, String operation) {}
    void setIgnoreDefaultRankFeatures(boolean ignore) {}
    void setNumThreadsPerSearch(int threads) {}
    void setMinHitsPerThread(int minHits) {}
    void setNumSearchPartitions(int numParts) {}
    void setTermwiseLimit(double limit) {}
    void setInheritedMatchFeatures(String other) {}
    void addRankProperty(String key, String value) {}
    void addConstant(String name, Value value) {}
    void addConstantTensor(String name, TensorValue value) {}
}