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
to index.
|
Term |
updateTerm |
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 |
getHashableId() |
BytesRef |
getIndexedId()
Returns the indexed ID for this document.
|
Document |
getLuceneDocument()
Creates and returns a lucene Document to index.
|
Document |
getLuceneDocument(boolean inPlaceUpdate)
Creates and returns a lucene Document to index.
|
String |
getPrintableId() |
SolrInputDocument |
getSolrInputDocument() |
boolean |
isBlock() |
boolean |
isInPlaceUpdate()
Is this add update an in-place update? An in-place update is one where only docValues are
updated, and a new docment is not indexed.
|
Iterator<Document> |
iterator() |
String |
name() |
void |
setIndexedId(BytesRef indexedId) |
String |
toString() |
clone, getFlags, getReq, getRoute, getVersion, setFlags, setReq, setRoute, setVersion
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public 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 UpdateCommand
public void clear()
public SolrInputDocument getSolrInputDocument()
public Document getLuceneDocument()
getLuceneDocument(boolean)
.public Document getLuceneDocument(boolean inPlaceUpdate)
inPlaceUpdate
- Whether this document will be used for in-place updates.public BytesRef getIndexedId()
public void setIndexedId(BytesRef indexedId)
public String getPrintableId()
public String getHashableId()
public boolean isBlock()
public String toString()
toString
in class UpdateCommand
public boolean isInPlaceUpdate()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.