java.io.Serializable, java.lang.Comparable<SearchType>public enum SearchType extends java.lang.Enum<SearchType>
| Enum Constant | Description |
|---|---|
DFS_QUERY_THEN_FETCH |
Same as
QUERY_THEN_FETCH, except for an initial scatter phase which goes and computes the distributed
term frequencies for more accurate scoring. |
QUERY_AND_FETCH |
Deprecated.
|
QUERY_THEN_FETCH |
The query is executed against all shards, but only enough information is returned (not the document content).
|
| Modifier and Type | Field | Description |
|---|---|---|
static SearchType |
DEFAULT |
The default search type (
QUERY_THEN_FETCH. |
| Modifier and Type | Method | Description |
|---|---|---|
static SearchType |
fromId(byte id) |
Constructs search type based on the internal id.
|
static SearchType |
fromString(java.lang.String searchType) |
The a string representation search type to execute, defaults to
DEFAULT. |
byte |
id() |
The internal id of the type.
|
static SearchType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SearchType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchType DFS_QUERY_THEN_FETCH
QUERY_THEN_FETCH, except for an initial scatter phase which goes and computes the distributed
term frequencies for more accurate scoring.public static final SearchType QUERY_THEN_FETCH
@Deprecated public static final SearchType QUERY_AND_FETCH
public static final SearchType DEFAULT
QUERY_THEN_FETCH.public static SearchType[] values()
for (SearchType c : SearchType.values()) System.out.println(c);
public static SearchType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte id()
public static SearchType fromId(byte id)
public static SearchType fromString(java.lang.String searchType)
DEFAULT. Can be
one of "dfs_query_then_fetch"/"dfsQueryThenFetch", "dfs_query_and_fetch"/"dfsQueryAndFetch",
"query_then_fetch"/"queryThenFetch" and "query_and_fetch"/"queryAndFetch".