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.DeleteHitCollectorSolrInfoMBean.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, registerOptimizeCallbackfinal 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.IOExceptionprotected void openWriter()
throws java.io.IOException
java.io.IOExceptionprotected void closeWriter()
throws java.io.IOException
java.io.IOExceptionprotected void openSearcher()
throws java.io.IOException
java.io.IOExceptionprotected void closeSearcher()
throws java.io.IOException
java.io.IOExceptionprotected void doAdd(org.apache.lucene.document.Document doc)
throws java.io.IOException
java.io.IOExceptionprotected boolean existsInIndex(java.lang.String indexedId)
throws java.io.IOException
java.io.IOExceptionprotected int deleteInIndex(java.lang.String indexedId)
throws java.io.IOException
java.io.IOExceptionprotected void overwrite(java.lang.String indexedId,
org.apache.lucene.document.Document doc)
throws java.io.IOException
java.io.IOExceptionpublic void delete(DeleteUpdateCommand cmd) throws java.io.IOException
delete in class UpdateHandlerjava.io.IOExceptionpublic void deleteByQuery(DeleteUpdateCommand cmd) throws java.io.IOException
deleteByQuery in class UpdateHandlerjava.io.IOExceptionpublic int mergeIndexes(MergeIndexesCommand cmd) throws java.io.IOException
mergeIndexes in class UpdateHandlerjava.io.IOExceptionpublic void commit(CommitUpdateCommand cmd) throws java.io.IOException
commit in class UpdateHandlerjava.io.IOExceptionpublic void rollback(RollbackUpdateCommand cmd) throws java.io.IOException
rollback in class UpdateHandlerjava.io.IOExceptionprotected int addNoOverwriteNoDups(AddUpdateCommand cmd) throws java.io.IOException
java.io.IOExceptionprotected int addConditionally(AddUpdateCommand cmd) throws java.io.IOException
java.io.IOExceptionprotected int overwriteBoth(AddUpdateCommand cmd) throws java.io.IOException
java.io.IOExceptionprotected int allowDups(AddUpdateCommand cmd) throws java.io.IOException
java.io.IOExceptionpublic int addDoc(AddUpdateCommand cmd) throws java.io.IOException
addDoc in class UpdateHandlerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in class UpdateHandlerjava.io.IOExceptionpublic java.lang.String getName()
SolrInfoMBeanpublic java.lang.String getVersion()
SolrInfoMBeanpublic java.lang.String getDescription()
SolrInfoMBeanpublic SolrInfoMBean.Category getCategory()
SolrInfoMBeanpublic java.lang.String getSourceId()
SolrInfoMBeanpublic java.lang.String getSource()
SolrInfoMBeanpublic java.net.URL[] getDocs()
SolrInfoMBeanSuggested 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.