Enum ScoringStrategy
- java.lang.Object
-
- java.lang.Enum<ScoringStrategy>
-
- com.atlassian.confluence.search.v2.ScoringStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<ScoringStrategy>
public enum ScoringStrategy extends Enum<ScoringStrategy>
This enum contains all supported scoring strategies for index. A scoring strategy determines which Similarity instance is used for the searcher of an index. If no scoring strategy or the DEFAULT scoring strategy is provided, then no custom Similarity instance will be used (for the searcher) SeeCustomLuceneConnectionFactoryImpl
for the implementation details.- Since:
- 7.17
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScoringStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScoringStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final ScoringStrategy DEFAULT
-
EDGE
public static final ScoringStrategy EDGE
-
-
Method Detail
-
values
public static ScoringStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScoringStrategy c : ScoringStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScoringStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-