public enum SearchType extends Enum<SearchType>
| 列挙型定数と説明 |
|---|
COUNT
非推奨です。
does not any improvements compared to
QUERY_THEN_FETCH with a `size` of 0 |
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
非推奨です。
will be removed in 3.0, you should do a regular scroll instead, ordered by `_doc`
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static SearchType |
DEFAULT
The default search type (
QUERY_THEN_FETCH. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static SearchType |
fromId(byte id)
Constructs search type based on the internal id.
|
static SearchType |
fromString(String searchType,
ParseFieldMatcher parseFieldMatcher)
The a string representation search type to execute, defaults to
DEFAULT. |
byte |
id()
The internal id of the type.
|
static SearchType |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static SearchType[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
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
@Deprecated public static final SearchType SCAN
@Deprecated public static final SearchType COUNT
QUERY_THEN_FETCH with a `size` of 0public static final SearchType DEFAULT
QUERY_THEN_FETCH.public static SearchType[] values()
for(SearchType c: SearchType.values()) System.out.println(c);
public static SearchType valueOf(String name)
name - 返される列挙型定数の名前。IllegalArgumentException - この列挙型に、指定した名前の定数がない場合NullPointerException - 引数がnullの場合public byte id()
public static SearchType fromId(byte id)
public static SearchType fromString(String searchType, ParseFieldMatcher parseFieldMatcher)
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".Copyright © 2009–2016. All rights reserved.