public enum FieldType extends Enum<FieldType>
| 枚举常量和说明 |
|---|
BOOLEAN |
DATE |
DOUBLE |
FUZZY_KEYWORD |
GEO_POINT |
IP |
JSON |
KEYWORD
String type, the difference from Text is that keyword is not split into tokens and usually serves as a whole.
|
LONG |
NESTED |
TEXT
String type, the difference from keyword is that text will be tokenized, generally used in fuzzy query scenarios.
|
UNKNOWN
Unknown type, please upgrade to the latest SDK version if you encounter this type.
|
VECTOR |
public static final FieldType LONG
public static final FieldType DOUBLE
public static final FieldType BOOLEAN
public static final FieldType KEYWORD
public static final FieldType TEXT
public static final FieldType NESTED
public static final FieldType GEO_POINT
public static final FieldType DATE
public static final FieldType VECTOR
public static final FieldType FUZZY_KEYWORD
public static final FieldType IP
public static final FieldType JSON
public static final FieldType UNKNOWN
public static FieldType[] values()
for (FieldType c : FieldType.values()) System.out.println(c);
public static FieldType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2025. All Rights Reserved.