Package org.apache.solr.update.processor
Class UpdateRequestProcessor
java.lang.Object
org.apache.solr.update.processor.UpdateRequestProcessor
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
DistributedUpdateProcessor,DocBasedVersionConstraintsProcessor,FieldMutatingUpdateProcessor,RegexpBoostProcessor,RoutedAliasUpdateProcessor,TolerantUpdateProcessor,URLClassifyProcessor
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
-
Field Details
-
next
-
-
Constructor Details
-
UpdateRequestProcessor
-
-
Method Details
-
processAdd
- Throws:
IOException
-
processDelete
- Throws:
IOException
-
processMergeIndexes
- Throws:
IOException
-
processCommit
- Throws:
IOException
-
processRollback
- Throws:
IOException- Since:
- Solr 1.4
-
finish
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
doClose
protected void doClose()Override to implement resource release logic that *must* be called at the end of a request.
-