DirectUpdateHandler2
instead. This is only kept around for back-compatibility (way back).@Deprecated public class DirectUpdateHandler extends UpdateHandler
DirectUpdateHandler
implements an UpdateHandler where documents are added
directly to the main lucene index as opposed to adding to a separate smaller index.
For this reason, not all combinations to/from pending and committed are supported.UpdateHandler.DeleteHitCollector
SolrInfoMBean.Category
Modifier and Type | Field and Description |
---|---|
(package private) int |
numAdds
Deprecated.
|
(package private) int |
numDeleted
Deprecated.
|
(package private) int |
numPending
Deprecated.
|
(package private) java.util.HashSet<java.lang.String> |
pset
Deprecated.
|
(package private) SolrIndexSearcher |
searcher
Deprecated.
|
(package private) org.apache.lucene.index.IndexWriter |
writer
Deprecated.
|
commitCallbacks, core, idField, idFieldType, idTerm, log, optimizeCallbacks, schema
Constructor and Description |
---|
DirectUpdateHandler(SolrCore core)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected int |
addConditionally(AddUpdateCommand cmd)
Deprecated.
|
int |
addDoc(AddUpdateCommand cmd)
Deprecated.
|
protected int |
addNoOverwriteNoDups(AddUpdateCommand cmd)
Deprecated.
|
protected int |
allowDups(AddUpdateCommand cmd)
Deprecated.
|
void |
close()
Deprecated.
|
protected void |
closeSearcher()
Deprecated.
|
protected void |
closeWriter()
Deprecated.
|
void |
commit(CommitUpdateCommand cmd)
Deprecated.
|
void |
delete(DeleteUpdateCommand cmd)
Deprecated.
Direct update handler - pseudo code ***********
def add(doc, id, allowDups, overwritePending, overwriteCommitted):
if not overwritePending and not overwriteCommitted:
#special case...
|
void |
deleteByQuery(DeleteUpdateCommand cmd)
Deprecated.
|
protected int |
deleteInIndex(java.lang.String indexedId)
Deprecated.
|
protected void |
doAdd(org.apache.lucene.document.Document doc)
Deprecated.
|
protected boolean |
existsInIndex(java.lang.String indexedId)
Deprecated.
|
SolrInfoMBean.Category |
getCategory()
Deprecated.
Purpose of this Class
|
java.lang.String |
getDescription()
Deprecated.
Simple one or two line description
|
java.net.URL[] |
getDocs()
Deprecated.
Documentation URL list.
|
java.lang.String |
getName()
Deprecated.
Simple common usage name, e.g.
|
java.lang.String |
getSource()
Deprecated.
CVS Source, SVN Source, etc
|
java.lang.String |
getSourceId()
Deprecated.
CVS Id, SVN Id, etc
|
NamedList |
getStatistics()
Deprecated.
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
java.lang.String |
getVersion()
Deprecated.
Simple common usage version, e.g.
|
int |
mergeIndexes(MergeIndexesCommand cmd)
Deprecated.
old hit collector...
|
protected void |
openSearcher()
Deprecated.
|
protected void |
openWriter()
Deprecated.
|
protected void |
overwrite(java.lang.String indexedId,
org.apache.lucene.document.Document doc)
Deprecated.
|
protected int |
overwriteBoth(AddUpdateCommand cmd)
Deprecated.
|
void |
rollback(RollbackUpdateCommand cmd)
Deprecated.
|
callPostCommitCallbacks, callPostOptimizeCallbacks, createMainIndexWriter, getIndexedId, getIndexedIdOptional, idTerm, registerCommitCallback, registerOptimizeCallback
final java.util.HashSet<java.lang.String> pset
org.apache.lucene.index.IndexWriter writer
SolrIndexSearcher searcher
int numAdds
int numPending
int numDeleted
public DirectUpdateHandler(SolrCore core) throws java.io.IOException
java.io.IOException
protected void openWriter() throws java.io.IOException
java.io.IOException
protected void closeWriter() throws java.io.IOException
java.io.IOException
protected void openSearcher() throws java.io.IOException
java.io.IOException
protected void closeSearcher() throws java.io.IOException
java.io.IOException
protected void doAdd(org.apache.lucene.document.Document doc) throws java.io.IOException
java.io.IOException
protected boolean existsInIndex(java.lang.String indexedId) throws java.io.IOException
java.io.IOException
protected int deleteInIndex(java.lang.String indexedId) throws java.io.IOException
java.io.IOException
protected void overwrite(java.lang.String indexedId, org.apache.lucene.document.Document doc) throws java.io.IOException
java.io.IOException
public void delete(DeleteUpdateCommand cmd) throws java.io.IOException
delete
in class UpdateHandler
java.io.IOException
public void deleteByQuery(DeleteUpdateCommand cmd) throws java.io.IOException
deleteByQuery
in class UpdateHandler
java.io.IOException
public int mergeIndexes(MergeIndexesCommand cmd) throws java.io.IOException
mergeIndexes
in class UpdateHandler
java.io.IOException
public void commit(CommitUpdateCommand cmd) throws java.io.IOException
commit
in class UpdateHandler
java.io.IOException
public void rollback(RollbackUpdateCommand cmd) throws java.io.IOException
rollback
in class UpdateHandler
java.io.IOException
protected int addNoOverwriteNoDups(AddUpdateCommand cmd) throws java.io.IOException
java.io.IOException
protected int addConditionally(AddUpdateCommand cmd) throws java.io.IOException
java.io.IOException
protected int overwriteBoth(AddUpdateCommand cmd) throws java.io.IOException
java.io.IOException
protected int allowDups(AddUpdateCommand cmd) throws java.io.IOException
java.io.IOException
public int addDoc(AddUpdateCommand cmd) throws java.io.IOException
addDoc
in class UpdateHandler
java.io.IOException
public void close() throws java.io.IOException
close
in class UpdateHandler
java.io.IOException
public java.lang.String getName()
SolrInfoMBean
public java.lang.String getVersion()
SolrInfoMBean
public java.lang.String getDescription()
SolrInfoMBean
public SolrInfoMBean.Category getCategory()
SolrInfoMBean
public java.lang.String getSourceId()
SolrInfoMBean
public java.lang.String getSource()
SolrInfoMBean
public java.net.URL[] getDocs()
SolrInfoMBean
Suggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
public NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString()
representation will be used.