public class ShardSearchLocalRequest extends ContextAndHeaderHolder implements ShardSearchRequest
{
from : 0, size : 20, (optional, can be set on the request)
sort : { "name.first" : {}, "name.last" : { reverse : true } }
fields : [ "name.first", "name.last" ]
query : { ... }
facets : {
"facet1" : {
query : { ... }
}
}
}
headers| Constructor and Description |
|---|
ShardSearchLocalRequest(ShardId shardId,
int numberOfShards,
SearchType searchType,
BytesReference source,
String[] types,
Boolean queryCache) |
ShardSearchLocalRequest(String[] types,
long nowInMillis) |
ShardSearchLocalRequest(String[] types,
long nowInMillis,
String[] filteringAliases) |
| 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() |
protected void |
innerReadFrom(StreamInput in) |
protected void |
innerWriteTo(StreamOutput out,
boolean asKey) |
long |
nowInMillis() |
int |
numberOfShards() |
Boolean |
queryCache() |
Scroll |
scroll() |
SearchType |
searchType() |
int |
shardId() |
BytesReference |
source() |
void |
source(BytesReference source) |
String |
templateName() |
Map<String,Object> |
templateParams() |
BytesReference |
templateSource() |
ScriptService.ScriptType |
templateType() |
String[] |
types() |
boolean |
useSlowScroll()
This setting is internal and will be enabled when at least one node is on versions 1.0.x and 1.1.x to enable
scrolling that those versions support.
|
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyContextAndHeadersFromcontextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContextcopyHeadersFrom, getHeader, getHeaders, hasHeader, putHeaderpublic ShardSearchLocalRequest(String[] types, long nowInMillis)
public ShardSearchLocalRequest(String[] types, long nowInMillis, String[] filteringAliases)
public ShardSearchLocalRequest(ShardId shardId, int numberOfShards, SearchType searchType, BytesReference source, String[] types, Boolean queryCache)
public String index()
index in interface ShardSearchRequestpublic int shardId()
shardId in interface ShardSearchRequestpublic String[] types()
types in interface ShardSearchRequestpublic BytesReference source()
source in interface ShardSearchRequestpublic void source(BytesReference source)
source in interface ShardSearchRequestpublic BytesReference extraSource()
extraSource in interface ShardSearchRequestpublic int numberOfShards()
numberOfShards in interface ShardSearchRequestpublic SearchType searchType()
searchType in interface ShardSearchRequestpublic String[] filteringAliases()
filteringAliases in interface ShardSearchRequestpublic long nowInMillis()
nowInMillis in interface ShardSearchRequestpublic String templateName()
templateName in interface ShardSearchRequestpublic ScriptService.ScriptType templateType()
templateType in interface ShardSearchRequestpublic Map<String,Object> templateParams()
templateParams in interface ShardSearchRequestpublic BytesReference templateSource()
templateSource in interface ShardSearchRequestpublic Boolean queryCache()
queryCache in interface ShardSearchRequestpublic Scroll scroll()
scroll in interface ShardSearchRequestpublic boolean useSlowScroll()
ShardSearchRequestuseSlowScroll in interface ShardSearchRequestprotected void innerReadFrom(StreamInput in) throws IOException
IOExceptionprotected void innerWriteTo(StreamOutput out, boolean asKey) throws IOException
IOExceptionpublic BytesReference cacheKey() throws IOException
ShardSearchRequestcacheKey in interface ShardSearchRequestIOExceptionCopyright © 2009–2016. All rights reserved.