Package org.apache.solr.update
Class CommitUpdateCommand
- java.lang.Object
-
- org.apache.solr.update.UpdateCommand
-
- org.apache.solr.update.CommitUpdateCommand
-
- All Implemented Interfaces:
Cloneable
public class CommitUpdateCommand extends UpdateCommand
A commit index command encapsulated in an object.
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,String>commitDataUser provided commit data.booleanexpungeDeletesintmaxOptimizeSegmentsDuring optimize, optimize down to <= this many segments.booleanopenSearcherbooleanoptimizebooleanprepareCommitbooleansoftCommitbooleanwaitSearcher-
Fields inherited from class org.apache.solr.update.UpdateCommand
BUFFERING, CLEAR_CACHES, flags, IGNORE_AUTOCOMMIT, IGNORE_INDEXWRITER, PEER_SYNC, REPLAY, req, route, version
-
-
Constructor Summary
Constructors Constructor Description CommitUpdateCommand(SolrQueryRequest req, boolean optimize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()StringtoString()-
Methods inherited from class org.apache.solr.update.UpdateCommand
clone, getFlags, getReq, getRoute, getTracer, getVersion, setFlags, setReq, setRoute, setVersion
-
-
-
-
Field Detail
-
optimize
public boolean optimize
-
openSearcher
public boolean openSearcher
-
waitSearcher
public boolean waitSearcher
-
expungeDeletes
public boolean expungeDeletes
-
softCommit
public boolean softCommit
-
prepareCommit
public boolean prepareCommit
-
commitData
public Map<String,String> commitData
User provided commit data. Can be let to null if there is none. It is possible to commit this user data, even if there is no uncommitted change in the index writer, provided this user data is not empty.
-
maxOptimizeSegments
public int maxOptimizeSegments
During optimize, optimize down to <= this many segments. Must be >= 1- See Also:
IndexWriter.forceMerge(int)
-
-
Constructor Detail
-
CommitUpdateCommand
public CommitUpdateCommand(SolrQueryRequest req, boolean optimize)
-
-
Method Detail
-
name
public String name()
- Specified by:
namein classUpdateCommand
-
toString
public String toString()
- Overrides:
toStringin classUpdateCommand
-
-