summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/document/MatchAlgorithm.java
blob: 545f2e293dc81b330b75a47b65df29f8d4b5c0c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.document;

/** Which match algorithm is used by this matching setup */

public enum MatchAlgorithm {
    NORMAL("normal"),
    PREFIX("prefix"),
    SUBSTRING("substring"),
    SUFFIX("suffix");

    private String name;
    MatchAlgorithm(String name) { this.name = name; }

    public String getName() { return name; }
}