org.apache.solr.client.solrj.request
public abstract class AbstractUpdateRequest extends SolrRequest 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 |
Constructor and Description |
---|
AbstractUpdateRequest(SolrRequest.METHOD m,
String path) |
Modifier and Type | Method and Description |
---|---|
AbstractUpdateRequest.ACTION |
getAction() |
int |
getCommitWithin() |
ModifiableSolrParams |
getParams() |
boolean |
isWaitSearcher() |
UpdateResponse |
process(SolrServer server) |
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) |
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) |
getContentStreams, getMethod, getPath, getResponseParser, getStreamingResponseCallback, setMethod, setPath, setResponseParser, setStreamingResponseCallback
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 rollback()
public void setParams(ModifiableSolrParams params)
public ModifiableSolrParams getParams()
getParams
in class SolrRequest
public UpdateResponse process(SolrServer server) throws SolrServerException, IOException
process
in class SolrRequest
SolrServerException
IOException
public boolean isWaitSearcher()
public AbstractUpdateRequest.ACTION getAction()
public void setWaitSearcher(boolean waitSearcher)
public int getCommitWithin()
public void setCommitWithin(int commitWithin)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.