Enum ScoringStrategy
- java.lang.Object
-
- java.lang.Enum<ScoringStrategy>
-
- com.atlassian.confluence.search.v2.ScoringStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<ScoringStrategy>
@Deprecated(since="8.7", forRemoval=true) public enum ScoringStrategy extends Enum<ScoringStrategy>
Deprecated, for removal: This API element is subject to removal in a future version.since 8.7This 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 Deprecated Methods Modifier and Type Method Description static ScoringStrategy
valueOf(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this type with the specified name.static ScoringStrategy[]
values()
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.
-
EDGE
public static final ScoringStrategy EDGE
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
values
public static ScoringStrategy[] values()
Deprecated, for removal: This API element is subject to removal in a future version.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)
Deprecated, for removal: This API element is subject to removal in a future version.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
-
-