|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<SearchType> org.elasticsearch.action.search.SearchType
public enum SearchType
Search type represent the manner at which the search operation is executed.
Enum Constant Summary | |
---|---|
COUNT
Only counts the results, will still execute facets and the like. |
|
DFS_QUERY_AND_FETCH
Same as QUERY_AND_FETCH , except for an initial scatter phase which goes and computes the distributed
term frequencies for more accurate scoring. |
|
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
The most naive (and possibly fastest) implementation is to simply execute the query on all relevant shards and return the results. |
|
QUERY_THEN_FETCH
The query is executed against all shards, but only enough information is returned (not the document content). |
|
SCAN
Performs scanning of the results which executes the search without any sorting. |
Field Summary | |
---|---|
static SearchType |
DEFAULT
The default search type ( QUERY_THEN_FETCH . |
Method Summary | |
---|---|
static SearchType |
fromId(byte id)
Constructs search type based on the internal id. |
static SearchType |
fromString(String searchType)
The a string representation search type to execute, defaults to DEFAULT . |
byte |
id()
The internal id of the type. |
static SearchType |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
public static final SearchType DFS_QUERY_AND_FETCH
QUERY_AND_FETCH
, except for an initial scatter phase which goes and computes the distributed
term frequencies for more accurate scoring.
public static final SearchType QUERY_AND_FETCH
public static final SearchType SCAN
public static final SearchType COUNT
Field Detail |
---|
public static final SearchType DEFAULT
QUERY_THEN_FETCH
.
Method Detail |
---|
public static SearchType[] values()
for (SearchType c : SearchType.values()) System.out.println(c);
public static SearchType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic byte id()
public static SearchType fromId(byte id)
public static SearchType fromString(String searchType) throws ElasticSearchIllegalArgumentException
DEFAULT
. Can be
one of "dfs_query_then_fetch"/"dfsQueryThenFetch", "dfs_query_and_fetch"/"dfsQueryAndFetch",
"query_then_fetch"/"queryThenFetch", "query_and_fetch"/"queryAndFetch", and "scan".
ElasticSearchIllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |