SearchRequest instead and set the size to 0@Deprecated public class CountRequest extends BroadcastRequest<CountRequest>
Requests.countRequest(String...).
The request requires the query source to be set either using source(QuerySourceBuilder),
or source(byte[]).
TransportRequest.EmptyIndicesRequest.Replaceable| 修飾子とタイプ | フィールドと説明 |
|---|---|
static float |
DEFAULT_MIN_SCORE
非推奨です。
|
protected String |
routing
非推奨です。
|
indicesheaders| コンストラクタと説明 |
|---|
CountRequest(String... indices)
非推奨です。
Constructs a new count request against the provided indices.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
float |
minScore()
非推奨です。
The minimum score of the documents to include in the count.
|
CountRequest |
minScore(float minScore)
非推奨です。
The minimum score of the documents to include in the count.
|
String |
preference()
非推奨です。
|
CountRequest |
preference(String preference)
非推奨です。
|
void |
readFrom(StreamInput in)
非推奨です。
|
String |
routing()
非推奨です。
A comma separated list of routing values to control the shards the search will be executed on.
|
CountRequest |
routing(String... routings)
非推奨です。
The routing values to control the shards that the search will be executed on.
|
CountRequest |
routing(String routing)
非推奨です。
A comma separated list of routing values to control the shards the search will be executed on.
|
BytesReference |
source()
非推奨です。
The source to execute.
|
CountRequest |
source(byte[] querySource)
非推奨です。
The source to execute.
|
CountRequest |
source(byte[] querySource,
int offset,
int length)
非推奨です。
The source to execute.
|
CountRequest |
source(BytesReference querySource)
非推奨です。
|
CountRequest |
source(Map querySource)
非推奨です。
The source to execute in the form of a map.
|
CountRequest |
source(QuerySourceBuilder sourceBuilder)
非推奨です。
The source to execute.
|
CountRequest |
source(String querySource)
非推奨です。
The source to execute.
|
CountRequest |
source(XContentBuilder builder)
非推奨です。
|
int |
terminateAfter()
非推奨です。
|
CountRequest |
terminateAfter(int terminateAfterCount)
非推奨です。
Upon reaching
terminateAfter counts, the count request will early terminate |
SearchRequest |
toSearchRequest()
非推奨です。
|
String |
toString()
非推奨です。
|
String[] |
types()
非推奨です。
The types of documents the query will run against.
|
CountRequest |
types(String... types)
非推奨です。
The types of documents the query will run against.
|
void |
writeTo(StreamOutput out)
非推奨です。
|
indices, indices, indicesOptions, indicesOptions, validatecreateTask, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic static final float DEFAULT_MIN_SCORE
public CountRequest(String... indices)
public float minScore()
public CountRequest minScore(float minScore)
public BytesReference source()
public CountRequest source(QuerySourceBuilder sourceBuilder)
public CountRequest source(Map querySource)
public CountRequest source(XContentBuilder builder)
public CountRequest source(String querySource)
source(byte[])
or source(QuerySourceBuilder).public CountRequest source(byte[] querySource)
public CountRequest source(byte[] querySource, int offset, int length)
public CountRequest source(BytesReference querySource)
public String[] types()
public CountRequest types(String... types)
public String routing()
public CountRequest routing(String routing)
public CountRequest routing(String... routings)
public CountRequest preference(String preference)
public String preference()
public CountRequest terminateAfter(int terminateAfterCount)
terminateAfter counts, the count request will early terminatepublic int terminateAfter()
public void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamablereadFrom クラス内 BroadcastRequest<CountRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamablewriteTo クラス内 BroadcastRequest<CountRequest>IOExceptionpublic SearchRequest toSearchRequest()
Copyright © 2009–2016. All rights reserved.