org.apache.solr.update
Class UpdateHandler
java.lang.Object
org.apache.solr.update.UpdateHandler
- All Implemented Interfaces:
- SolrInfoMBean
- Direct Known Subclasses:
- DirectUpdateHandler, DirectUpdateHandler2
public abstract class UpdateHandler
- extends Object
- implements SolrInfoMBean
UpdateHandler
handles requests to change the index
(adds, deletes, commits, optimizes, etc).
- Since:
- solr 0.9
- Version:
- $Id: UpdateHandler.java 542679 2007-05-29 22:28:21Z ryan $
- Author:
- yonik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final Logger log
core
protected final SolrCore core
schema
protected final IndexSchema schema
idField
protected final SchemaField idField
idFieldType
protected final FieldType idFieldType
commitCallbacks
protected Vector<SolrEventListener> commitCallbacks
optimizeCallbacks
protected Vector<SolrEventListener> optimizeCallbacks
UpdateHandler
public UpdateHandler(SolrCore core)
callPostCommitCallbacks
protected void callPostCommitCallbacks()
callPostOptimizeCallbacks
protected void callPostOptimizeCallbacks()
createMainIndexWriter
protected SolrIndexWriter createMainIndexWriter(String name)
throws IOException
- Throws:
IOException
idTerm
protected final Term idTerm(String readableId)
getIndexedId
protected final String getIndexedId(Document doc)
getIndexedIdOptional
protected final String getIndexedIdOptional(Document doc)
addDoc
public abstract int addDoc(AddUpdateCommand cmd)
throws IOException
- Throws:
IOException
delete
public abstract void delete(DeleteUpdateCommand cmd)
throws IOException
- Throws:
IOException
deleteByQuery
public abstract void deleteByQuery(DeleteUpdateCommand cmd)
throws IOException
- Throws:
IOException
commit
public abstract void commit(CommitUpdateCommand cmd)
throws IOException
- Throws:
IOException
close
public abstract void close()
throws IOException
- Throws:
IOException
Copyright © 2006 - 2009 The Apache Software Foundation