UpdateRequestProcessor is a mechinism in Solr to change the documents that are being submitted for indexing to Solr. The processors provide advanced functions such as language identification, duplicate detection, intelligent defaults, external text processing pipelines integration, and - most recently - schemaless schema mapping.
UpdateRequestProcessor factories (a.k.a. Update Request Processors or URPs) can be chained and multiple chains can be defined for a Solr collection. A chain is assigned to a request handler with update.chain parameter that can be defined in the configuration file or passed as a part of the URL. For full syntax consult Solr Reference Guide.
Here, you will find the full set of UpdateRequestProcessor factories presented in their inheritance hierarchy. Abstract classes that you cannot use directly are marked with underlined italic. Clicking on the class name will open corresponding JavaDoc page.
Most of the UpdateRequestProcessor factories are located in solr-core-6.4.0.jar ( dist ), so any entry without a location indicated can be found in that jar.
UpdateRequestProcessorFactoryA factory to generate an UpdateRequestProcessor for each request.
AbstractDefaultValueUpdateProcessorFactoryBase class that can be extended by any UpdateRequestProcessorFactory designed to add a default value to the document in an AddUpdateCommand when that field is not already specified.
DefaultValueUpdateProcessorFactory (Sample mentions: indexing-book-1 )An update processor that adds a constant default value to any document being added that does not already have a value in the specified field.
TimestampUpdateProcessorFactoryAn update processor that adds a newly generated Date value of "NOW" to any document being added that does not already have a value in the specified field.
AddSchemaFieldsUpdateProcessorFactory (Sample mentions: solr-1 )This processor will dynamically add fields to the schema if an input document contains one or more fields that don't match any field or dynamic field in the schema.
CdcrUpdateProcessorFactoryExtends org.apache.solr.update.processor.DistributedUpdateProcessor to force peer sync logic for every updates.
ClassificationUpdateProcessorFactoryThis class implements an UpdateProcessorFactory for the Classification Update Processor.
CloneFieldUpdateProcessorFactory (Sample mentions: indexing-book-1 )Clones the values found in any matching source field into a configured dest field.
DistributedUpdateProcessorFactory (Sample mentions: solr-1 )Factory for DistributedUpdateProcessor.
DocBasedVersionConstraintsProcessorFactoryThis Factory generates an UpdateProcessor that helps to enforce Version constraints on documents based on per-document version numbers using a configured name of a versionField.
DocExpirationUpdateProcessorFactory (Sample mentions: typo3-1 )Update Processor Factory for managing automatic "expiration" of documents.
FieldMutatingUpdateProcessorFactoryBase class for implementing Factories for FieldMutatingUpdateProcessors and FieldValueMutatingUpdateProcessors.
ConcatFieldUpdateProcessorFactoryConcatenates multiple values for fields matching the specified conditions using a configurable delimiter which defaults to ", ".
CountFieldValuesUpdateProcessorFactory (Sample mentions: indexing-book-1 )Replaces any list of values for a field matching the specified conditions with the the count of the number of values for that field.
FieldLengthUpdateProcessorFactoryReplaces any CharSequence values found in fields matching the specified conditions with the lengths of those CharSequences (as an Integer).
FieldValueSubsetUpdateProcessorFactoryBase class for processors that want to mutate selected fields to only keep a subset of the original values.
FirstFieldValueUpdateProcessorFactoryKeeps only the first value of fields matching the specified conditions.
LastFieldValueUpdateProcessorFactoryKeeps only the last value of fields matching the specified conditions.
MaxFieldValueUpdateProcessorFactoryAn update processor that keeps only the the maximum value from any selected fields where multiple values are found.
MinFieldValueUpdateProcessorFactoryAn update processor that keeps only the the minimum value from any selected fields where multiple values are found.
UniqFieldsUpdateProcessorFactoryRemoves duplicate values found in fields matching the specified conditions.
HTMLStripFieldUpdateProcessorFactoryStrips all HTML Markup in any CharSequence values found in fields matching the specified conditions.
IgnoreFieldUpdateProcessorFactoryIgnores & removes fields matching the specified conditions from any document being added to the index.
ParseBooleanFieldUpdateProcessorFactory (Sample mentions: solr-1 )Attempts to mutate selected fields that have only CharSequence-typed values into Boolean values.
ParseDateFieldUpdateProcessorFactory (Sample mentions: solr-1 )Attempts to mutate selected fields that have only CharSequence-typed values into Date values.
ParseNumericFieldUpdateProcessorFactoryAbstract base class for numeric parsing update processor factories.
ParseDoubleFieldUpdateProcessorFactory (Sample mentions: solr-1 )Attempts to mutate selected fields that have only CharSequence-typed values into Double values.
ParseFloatFieldUpdateProcessorFactoryAttempts to mutate selected fields that have only CharSequence-typed values into Float values.
ParseIntFieldUpdateProcessorFactoryAttempts to mutate selected fields that have only CharSequence-typed values into Integer values.
ParseLongFieldUpdateProcessorFactory (Sample mentions: solr-1 )Attempts to mutate selected fields that have only CharSequence-typed values into Long values.
PreAnalyzedUpdateProcessorFactoryAn update processor that parses configured fields of any document being added using PreAnalyzedField with the configured format parser.
RegexReplaceProcessorFactoryAn updated processor that applies a configured regex to any CharSequence values found in the selected fields, and replaces any matches with the configured replacement string.
RemoveBlankFieldUpdateProcessorFactory (Sample mentions: solr-1 )Removes any values found which are CharSequence with a length of 0.
TrimFieldUpdateProcessorFactoryTrims leading and trailing whitespace from any CharSequence values found in fields matching the specified conditions and returns the resulting String.
TruncateFieldUpdateProcessorFactoryTruncates any CharSequence values found in fields matching the specified conditions to a maximum character length.
FieldNameMutatingUpdateProcessorFactory (Sample mentions: solr-1 )In the FieldNameMutatingUpdateProcessorFactory configured below, fields names will be mutated if the name contains space.
IgnoreCommitOptimizeUpdateProcessorFactoryGives system administrators a way to ignore explicit commit or optimize requests from clients.
LangDetectLanguageIdentifierUpdateProcessorFactory in solr-langid-6.4.0.jar ( dist/ ) (Sample mentions: solr-1 indexing-book-1 )Identifies the language of a set of input fields using http://code.google.com/p/language-detection
LogUpdateProcessorFactory (Sample mentions: solr-1 )A logging processor.
NoOpDistributingUpdateProcessorFactoryA No-Op implementation of DistributingUpdateProcessorFactory that allways returns null.
RegexpBoostProcessorFactoryFactory which creates RegexBoostProcessors
RunUpdateProcessorFactory (Sample mentions: solr-1 )Executes the update commands using the underlying UpdateHandler.
SignatureUpdateProcessorFactory
SimpleUpdateProcessorFactoryA base class for writing a very simple UpdateProcessor without worrying too much about the API.
TemplateUpdateProcessorFactoryAdds new fields to documents based on a template pattern specified via Template.field request parameters (multi-valued) or 'field' value specified in initArgs.
SkipExistingDocumentsProcessorFactoryThis Factory generates an UpdateProcessor that will (by default) skip inserting new documents if there already exists a document with the same uniqueKey value in the index.
StatelessScriptUpdateProcessorFactory (Sample mentions: solr-1 )An update request processor factory that enables the use of update processors implemented as scripts which can be loaded by the SolrResourceLoader (usually via the conf dir for the SolrCore).
TikaLanguageIdentifierUpdateProcessorFactory in solr-langid-6.4.0.jar ( dist/ )Identifies the language of a set of input fields using Tika's LanguageIdentifier.
TolerantUpdateProcessorFactorySuppresses errors for individual add/delete commands within a single request.
UIMAUpdateRequestProcessorFactory in solr-uima-6.4.0.jar ( dist/ )Update document(s) to be indexed with UIMA extracted information
URLClassifyProcessorFactoryCreates URLClassifyProcessor
UUIDUpdateProcessorFactory (Sample mentions: solr-1 )An update processor that adds a newly generated UUID value to any document being added that does not already have a value in the specified field.
<processor class="solr.CustomUpdateRequestProcessorFactory">Only non-core URPs require full class name, including package name.