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) |
AbstractUpdateRequest |
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) |
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, 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 AbstractUpdateRequest setCommitWithin(int commitWithin)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.