public enum ScoreType extends Enum<ScoreType>
| 枚举常量和说明 |
|---|
DECAY_FUNCTION
Decay functions score a document with a function that decays depending on the distance of a numeric field value of the document from a user given origin.
|
FIELD_VALUE_FACTOR
字段值向量
|
RANDOM_SCORE
随机
|
SCRIPT_SCORE
脚本
|
WEIGHT
权重
|
public static final ScoreType SCRIPT_SCORE
public static final ScoreType WEIGHT
public static final ScoreType RANDOM_SCORE
public static final ScoreType FIELD_VALUE_FACTOR
public static final ScoreType DECAY_FUNCTION
public static ScoreType[] values()
for (ScoreType c : ScoreType.values()) System.out.println(c);
public static ScoreType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2021. All rights reserved.