public interface ShardSearchRequest extends HasContextAndHeaders
SearchContext
needs.
Provides a cache key based on its content that can be used to cache shard level response.Modifier and Type | Method and Description |
---|---|
BytesReference |
cacheKey()
Returns the cache key for this shard search request, based on its content
|
BytesReference |
extraSource() |
String[] |
filteringAliases() |
String |
index() |
boolean |
isProfile()
Returns true if this shard search is being profiled or not
|
long |
nowInMillis() |
int |
numberOfShards() |
Boolean |
requestCache() |
Scroll |
scroll() |
SearchType |
searchType() |
void |
setProfile(boolean profile)
Sets if this shard search needs to be profiled or not
|
int |
shardId() |
BytesReference |
source() |
void |
source(BytesReference source) |
Template |
template() |
BytesReference |
templateSource() |
String[] |
types() |
copyContextAndHeadersFrom
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
copyHeadersFrom, getHeader, getHeaders, hasHeader, putHeader
String index()
int shardId()
String[] types()
BytesReference source()
void source(BytesReference source)
BytesReference extraSource()
int numberOfShards()
SearchType searchType()
String[] filteringAliases()
long nowInMillis()
Template template()
BytesReference templateSource()
Boolean requestCache()
Scroll scroll()
void setProfile(boolean profile)
profile
- True if the shard should be profiledboolean isProfile()
BytesReference cacheKey() throws IOException
IOException
Copyright © 2009–2017. All rights reserved.