org.apache.solr.update
Class AddUpdateCommand
java.lang.Object
org.apache.solr.update.UpdateCommand
org.apache.solr.update.AddUpdateCommand
- All Implemented Interfaces:
- Cloneable
public class AddUpdateCommand
- extends UpdateCommand
solrDoc
public SolrInputDocument solrDoc
overwrite
public boolean overwrite
updateTerm
public Term updateTerm
commitWithin
public int commitWithin
AddUpdateCommand
public AddUpdateCommand(SolrQueryRequest req)
name
public String name()
- Specified by:
name
in class UpdateCommand
clear
public void clear()
- Reset state to reuse this object with a different document in the same request
getSolrInputDocument
public SolrInputDocument getSolrInputDocument()
getLuceneDocument
public Document getLuceneDocument()
- Creates and returns a lucene Document to index. Any changes made to the returned Document
will not be reflected in the SolrInputDocument, or future calls to this method.
getIndexedId
public BytesRef getIndexedId()
- Returns the indexed ID for this document. The returned BytesRef is retained across multiple calls, and should not be modified.
setIndexedId
public void setIndexedId(BytesRef indexedId)
getPrintableId
public String getPrintableId()
getHashableId
public String getHashableId()
- Returns:
- String id to hash
toString
public String toString()
- Overrides:
toString
in class UpdateCommand
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.