public abstract class AbstractUpdateRequest extends SolrRequest<UpdateResponse> implements IsUpdateRequest
Modifier and Type | Class and Description |
---|---|
static class |
AbstractUpdateRequest.ACTION |
SolrRequest.METHOD
Modifier and Type | Field and Description |
---|---|
protected int |
commitWithin |
protected ModifiableSolrParams |
params |
SUPPORTED_METHODS, useBinaryV2, usev2
Constructor and Description |
---|
AbstractUpdateRequest(SolrRequest.METHOD m,
String path) |
Modifier and Type | Method and Description |
---|---|
protected UpdateResponse |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
AbstractUpdateRequest.ACTION |
getAction() |
int |
getCommitWithin() |
ModifiableSolrParams |
getParams() |
boolean |
isWaitSearcher() |
AbstractUpdateRequest |
rollback() |
AbstractUpdateRequest |
setAction(AbstractUpdateRequest.ACTION action,
boolean waitFlush,
boolean waitSearcher)
Sets appropriate parameters for the given ACTION
|
AbstractUpdateRequest |
setAction(AbstractUpdateRequest.ACTION action,
boolean waitFlush,
boolean waitSearcher,
boolean softCommit) |
AbstractUpdateRequest |
setAction(AbstractUpdateRequest.ACTION action,
boolean waitFlush,
boolean waitSearcher,
boolean softCommit,
int maxSegments) |
AbstractUpdateRequest |
setAction(AbstractUpdateRequest.ACTION action,
boolean waitFlush,
boolean waitSearcher,
int maxSegments) |
AbstractUpdateRequest |
setAction(AbstractUpdateRequest.ACTION action,
boolean waitFlush,
boolean waitSearcher,
int maxSegments,
boolean expungeDeletes) |
AbstractUpdateRequest |
setAction(AbstractUpdateRequest.ACTION action,
boolean waitFlush,
boolean waitSearcher,
int maxSegments,
boolean softCommit,
boolean expungeDeletes) |
AbstractUpdateRequest |
setAction(AbstractUpdateRequest.ACTION action,
boolean waitFlush,
boolean waitSearcher,
int maxSegments,
boolean softCommit,
boolean expungeDeletes,
boolean openSearcher) |
void |
setCommitWithin(int commitWithin) |
void |
setParam(String param,
String value) |
void |
setParams(ModifiableSolrParams params)
Sets the parameters for this update request, overwriting any previous
|
void |
setWaitSearcher(boolean waitSearcher) |
getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUseV2
protected ModifiableSolrParams params
protected int commitWithin
public AbstractUpdateRequest(SolrRequest.METHOD m, String path)
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher)
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, boolean softCommit)
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments)
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, boolean softCommit, int maxSegments)
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments, boolean softCommit, boolean expungeDeletes)
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments, boolean expungeDeletes)
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments, boolean softCommit, boolean expungeDeletes, boolean openSearcher)
public AbstractUpdateRequest rollback()
public void setParams(ModifiableSolrParams params)
public ModifiableSolrParams getParams()
getParams
in class SolrRequest<UpdateResponse>
protected UpdateResponse createResponse(SolrClient client)
SolrRequest
createResponse
in class SolrRequest<UpdateResponse>
client
- the SolrClient
the request will be sent topublic boolean isWaitSearcher()
public AbstractUpdateRequest.ACTION getAction()
public void setWaitSearcher(boolean waitSearcher)
public int getCommitWithin()
public void setCommitWithin(int commitWithin)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.