类 GetSourceRequest
java.lang.Object
org.easysearch.client.core.GetSourceRequest
- 所有已实现的接口:
Validatable
public final class GetSourceRequest extends java.lang.Object implements Validatable
-
字段概要
从接口继承的字段 org.easysearch.client.Validatable
EMPTY -
构造器概要
构造器 构造器 说明 GetSourceRequest(java.lang.String index, java.lang.String id) -
方法概要
修饰符和类型 方法 说明 org.easysearch.search.fetch.subphase.FetchSourceContextfetchSourceContext()GetSourceRequestfetchSourceContext(org.easysearch.search.fetch.subphase.FetchSourceContext context)Allows setting theFetchSourceContextfor this request, controlling if and how _source should be returned.static GetSourceRequestfrom(org.easysearch.action.get.GetRequest getRequest)java.lang.Stringid()java.lang.Stringindex()java.lang.Stringpreference()GetSourceRequestpreference(java.lang.String preference)Sets the preference to execute the search.booleanrealtime()GetSourceRequestrealtime(boolean realtime)booleanrefresh()GetSourceRequestrefresh(boolean refresh)Should a refresh be executed before this get operation causing the operation to return the latest value.java.lang.Stringrouting()GetSourceRequestrouting(java.lang.String routing)Controls the shard routing of the request.java.lang.Stringtype()GetSourceRequesttype(java.lang.String type)从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.easysearch.client.Validatable
validate
-
构造器详细资料
-
GetSourceRequest
public GetSourceRequest(java.lang.String index, java.lang.String id)
-
-
方法详细资料
-
from
-
routing
Controls the shard routing of the request. Using this value to hash the shard and not the id. -
preference
Sets the preference to execute the search. Defaults to randomize across shards. Can be set to_localto prefer local shards or a custom value, which guarantees that the same order will be used across different requests. -
refresh
Should a refresh be executed before this get operation causing the operation to return the latest value. Note, heavy get should not set this totrue. Defaults tofalse. -
realtime
-
fetchSourceContext
public GetSourceRequest fetchSourceContext(org.easysearch.search.fetch.subphase.FetchSourceContext context)Allows setting theFetchSourceContextfor this request, controlling if and how _source should be returned. Note, thefetchSourcefield of the context must be set totrue. -
index
public java.lang.String index() -
type
public java.lang.String type() -
type
-
id
public java.lang.String id() -
routing
public java.lang.String routing() -
preference
public java.lang.String preference() -
refresh
public boolean refresh() -
realtime
public boolean realtime() -
fetchSourceContext
public org.easysearch.search.fetch.subphase.FetchSourceContext fetchSourceContext()
-