org.apache.solr.update.processor
Class UpdateRequestProcessor
java.lang.Object
org.apache.solr.update.processor.UpdateRequestProcessor
- Direct Known Subclasses:
- AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor, DistributedUpdateProcessor, FieldMutatingUpdateProcessor, RegexpBoostProcessor, URLClassifyProcessor
public abstract class UpdateRequestProcessor
- extends Object
This is a good place for subclassed update handlers to process the document before it is
indexed. You may wish to add/remove fields or check if the requested user is allowed to
update the given document...
Perhaps you continue adding an error message (without indexing the document)...
perhaps you throw an error and halt indexing (remove anything already indexed??)
By default, this just passes the request to the next processor in the chain.
- Since:
- solr 1.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
next
protected final UpdateRequestProcessor next
UpdateRequestProcessor
public UpdateRequestProcessor(UpdateRequestProcessor next)
processAdd
public void processAdd(AddUpdateCommand cmd)
throws IOException
- Throws:
IOException
processDelete
public void processDelete(DeleteUpdateCommand cmd)
throws IOException
- Throws:
IOException
processMergeIndexes
public void processMergeIndexes(MergeIndexesCommand cmd)
throws IOException
- Throws:
IOException
processCommit
public void processCommit(CommitUpdateCommand cmd)
throws IOException
- Throws:
IOException
processRollback
public void processRollback(RollbackUpdateCommand cmd)
throws IOException
- Throws:
IOException
- Since:
- Solr 1.4
finish
public void finish()
throws IOException
- Throws:
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.