public interface ShardSearchRequest
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
|
java.lang.String[] |
filteringAliases() |
boolean |
isProfile()
Returns true if this shard search is being profiled or not
|
long |
nowInMillis() |
int |
numberOfShards() |
java.lang.Boolean |
requestCache() |
void |
rewrite(QueryShardContext context)
Rewrites this request into its primitive form.
|
Scroll |
scroll() |
SearchType |
searchType() |
void |
setProfile(boolean profile)
Sets if this shard search needs to be profiled or not
|
ShardId |
shardId() |
SearchSourceBuilder |
source() |
void |
source(SearchSourceBuilder source) |
java.lang.String[] |
types() |
ShardId shardId()
java.lang.String[] types()
SearchSourceBuilder source()
void source(SearchSourceBuilder source)
int numberOfShards()
SearchType searchType()
java.lang.String[] filteringAliases()
long nowInMillis()
java.lang.Boolean requestCache()
Scroll scroll()
void setProfile(boolean profile)
profile
- True if the shard should be profiledboolean isProfile()
BytesReference cacheKey() throws java.io.IOException
java.io.IOException
void rewrite(QueryShardContext context) throws java.io.IOException
java.io.IOException