|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.support.BaseRequestBuilder<PercolateRequest,PercolateResponse> org.elasticsearch.action.percolate.PercolateRequestBuilder
public class PercolateRequestBuilder
Field Summary |
---|
Fields inherited from class org.elasticsearch.action.support.BaseRequestBuilder |
---|
client, request |
Constructor Summary | |
---|---|
PercolateRequestBuilder(Client client)
|
|
PercolateRequestBuilder(Client client,
String index,
String type)
|
Method Summary | |
---|---|
protected void |
doExecute(ActionListener<PercolateResponse> listener)
|
PercolateRequestBuilder |
setIndex(String index)
Sets the index to percolate the document against. |
PercolateRequestBuilder |
setListenerThreaded(boolean listenerThreaded)
Should the listener be called on a separate thread if needed. |
PercolateRequestBuilder |
setOperationThreaded(boolean operationThreaded)
Controls if the operation will be executed on a separate thread when executed locally. |
PercolateRequestBuilder |
setPreferLocal(boolean preferLocal)
if this operation hits a node with a local relevant shard, should it be preferred to be executed on, or just do plain round robin. |
PercolateRequestBuilder |
setSource(byte[] source)
Sets the document to index in bytes form. |
PercolateRequestBuilder |
setSource(byte[] source,
int offset,
int length)
Sets the document to index in bytes form (assumed to be safe to be used from different threads). |
PercolateRequestBuilder |
setSource(byte[] source,
int offset,
int length,
boolean unsafe)
Sets the document to index in bytes form. |
PercolateRequestBuilder |
setSource(BytesReference source)
Sets the document to index in bytes form. |
PercolateRequestBuilder |
setSource(BytesReference source,
boolean unsafe)
Sets the document to index in bytes form. |
PercolateRequestBuilder |
setSource(Map<String,Object> source)
Index the Map as a JSON. |
PercolateRequestBuilder |
setSource(Map<String,Object> source,
XContentType contentType)
Index the Map as the provided content type. |
PercolateRequestBuilder |
setSource(String source)
Sets the document source to index. |
PercolateRequestBuilder |
setSource(XContentBuilder sourceBuilder)
Sets the content source to index. |
PercolateRequestBuilder |
setType(String type)
Sets the type of the document to percolate. |
Methods inherited from class org.elasticsearch.action.support.BaseRequestBuilder |
---|
execute, execute, request |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PercolateRequestBuilder(Client client)
public PercolateRequestBuilder(Client client, String index, String type)
Method Detail |
---|
public PercolateRequestBuilder setIndex(String index)
public PercolateRequestBuilder setType(String type)
public PercolateRequestBuilder setSource(Map<String,Object> source)
source
- The map to indexpublic PercolateRequestBuilder setSource(Map<String,Object> source, XContentType contentType)
source
- The map to indexpublic PercolateRequestBuilder setSource(String source)
Note, its preferable to either set it using setSource(org.elasticsearch.common.xcontent.XContentBuilder)
or using the setSource(byte[])
.
public PercolateRequestBuilder setSource(XContentBuilder sourceBuilder)
public PercolateRequestBuilder setSource(BytesReference source)
public PercolateRequestBuilder setSource(BytesReference source, boolean unsafe)
public PercolateRequestBuilder setSource(byte[] source)
public PercolateRequestBuilder setSource(byte[] source, int offset, int length)
source
- The source to indexoffset
- The offset in the byte arraylength
- The length of the datapublic PercolateRequestBuilder setSource(byte[] source, int offset, int length, boolean unsafe)
source
- The source to indexoffset
- The offset in the byte arraylength
- The length of the dataunsafe
- Is the byte array safe to be used form a different threadpublic PercolateRequestBuilder setListenerThreaded(boolean listenerThreaded)
public PercolateRequestBuilder setPreferLocal(boolean preferLocal)
public PercolateRequestBuilder setOperationThreaded(boolean operationThreaded)
protected void doExecute(ActionListener<PercolateResponse> listener)
doExecute
in class BaseRequestBuilder<PercolateRequest,PercolateResponse>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |