|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.search.MultiSearchRequest
public class MultiSearchRequest
A multi search API request.
Constructor Summary | |
---|---|
MultiSearchRequest()
|
Method Summary | |
---|---|
MultiSearchRequest |
add(byte[] data,
int from,
int length,
boolean contentUnsafe,
String[] indices,
String[] types,
String searchType)
|
MultiSearchRequest |
add(BytesReference data,
boolean contentUnsafe,
String[] indices,
String[] types,
String searchType,
IgnoreIndices ignoreIndices)
|
MultiSearchRequest |
add(SearchRequest request)
Add a search request to execute. |
MultiSearchRequest |
add(SearchRequestBuilder request)
Add a search request to execute. |
IgnoreIndices |
ignoreIndices()
|
MultiSearchRequest |
ignoreIndices(IgnoreIndices ignoreIndices)
|
boolean |
listenerThreaded()
Should the response listener be executed on a thread or not. |
MultiSearchRequest |
listenerThreaded(boolean listenerThreaded)
Sets if the response listener be executed on a thread or not. |
void |
readFrom(StreamInput in)
|
List<SearchRequest> |
requests()
|
ActionRequestValidationException |
validate()
|
void |
writeTo(StreamOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiSearchRequest()
Method Detail |
---|
public MultiSearchRequest add(SearchRequestBuilder request)
public MultiSearchRequest add(SearchRequest request)
public MultiSearchRequest add(byte[] data, int from, int length, boolean contentUnsafe, @Nullable String[] indices, @Nullable String[] types, @Nullable String searchType) throws Exception
Exception
public MultiSearchRequest add(BytesReference data, boolean contentUnsafe, @Nullable String[] indices, @Nullable String[] types, @Nullable String searchType, IgnoreIndices ignoreIndices) throws Exception
Exception
public List<SearchRequest> requests()
public ActionRequestValidationException validate()
validate
in interface ActionRequest
public boolean listenerThreaded()
ActionRequest
When not executing on a thread, it will either be executed on the calling thread, or on an expensive, IO based, thread.
listenerThreaded
in interface ActionRequest
public MultiSearchRequest listenerThreaded(boolean listenerThreaded)
ActionRequest
listenerThreaded
in interface ActionRequest
public IgnoreIndices ignoreIndices()
public MultiSearchRequest ignoreIndices(IgnoreIndices ignoreIndices)
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |