Package org.apache.solr.update
Class CommitUpdateCommand
java.lang.Object
org.apache.solr.update.UpdateCommand
org.apache.solr.update.CommitUpdateCommand
- All Implemented Interfaces:
Cloneable
A commit index command encapsulated in an object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionUser provided commit data.booleanintDuring optimize, optimize down to <= this many segments.booleanbooleanbooleanbooleanbooleanFields 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic CommitUpdateCommandcloseOnCommit(SolrQueryRequest req, boolean optimize) Creates aCommitUpdateCommandto commit before closing the core and also prevent any new update by setting the core in read-only mode.booleanIndicates whether this command is a commit before the core is closed.name()toString()Methods inherited from class org.apache.solr.update.UpdateCommand
clone, getFlags, getReq, getRoute, getVersion, setFlags, setRoute, setVersion
-
Field Details
-
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
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 maxOptimizeSegmentsDuring optimize, optimize down to <= this many segments. Must be >= 1- See Also:
-
-
Constructor Details
-
CommitUpdateCommand
-
-
Method Details
-
closeOnCommit
Creates aCommitUpdateCommandto commit before closing the core and also prevent any new update by setting the core in read-only mode. Does not open a new searcher. -
isClosingOnCommit
public boolean isClosingOnCommit()Indicates whether this command is a commit before the core is closed. Any new updates must be prevented after the commit. -
name
- Specified by:
namein classUpdateCommand
-
toString
- Overrides:
toStringin classUpdateCommand
-