public class AddUpdateCommand extends UpdateCommand
UpdateCommand for adding or updating one document. Technically more than one Lucene documents
may be involved in the event of nested documents.| Modifier and Type | Field and Description |
|---|---|
int |
commitWithin |
boolean |
isLastDocInBatch |
boolean |
overwrite |
long |
prevVersion
This is the version of a document, previously indexed, on which the current
update depends on.
|
SolrInputDocument |
solrDoc
Higher level SolrInputDocument, normally used to construct the Lucene Document(s)
to index.
|
Term |
updateTerm
The term to use to delete an existing document (for dedupe).
|
BUFFERING, CLEAR_CACHES, flags, IGNORE_AUTOCOMMIT, IGNORE_INDEXWRITER, PEER_SYNC, REPLAY, req, route, version| Constructor and Description |
|---|
AddUpdateCommand(SolrQueryRequest req) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Reset state to reuse this object with a different document in the same request
|
String |
getChildDocIdStr()
Returns the ID of the doc itself, possibly different from
getIndexedIdStr() which
points to the root doc. |
BytesRef |
getIndexedId()
Returns the indexed ID for this document, or the root ID for nested documents.
|
String |
getIndexedIdStr()
Returns the indexed ID for this document, or the root ID for nested documents.
|
String |
getPrintableId()
The ID for logging purposes.
|
SolrInputDocument |
getSolrInputDocument() |
boolean |
isInPlaceUpdate()
Is this add update an in-place update? An in-place update is one where only docValues are
updated, and a new document is not indexed.
|
String |
name() |
void |
setIndexedId(BytesRef indexedId) |
String |
toString() |
clone, getFlags, getReq, getRoute, getVersion, setFlags, setReq, setRoute, setVersionpublic SolrInputDocument solrDoc
public long prevVersion
public boolean overwrite
public Term updateTerm
public int commitWithin
public boolean isLastDocInBatch
public AddUpdateCommand(SolrQueryRequest req)
public String name()
name in class UpdateCommandpublic void clear()
public SolrInputDocument getSolrInputDocument()
public String getIndexedIdStr()
public BytesRef getIndexedId()
public String getChildDocIdStr()
getIndexedIdStr() which
points to the root doc.public String getPrintableId()
public void setIndexedId(BytesRef indexedId)
public String toString()
toString in class UpdateCommandpublic boolean isInPlaceUpdate()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.