11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

InitParams<br />

<br />

<br />

add-unknown-fields-to-the-schema<br />

<br />

<br />

Alternately, one can achieve a similar effect using the "defaults" as shown in the example below:<br />

defaults<br />

<br />

<br />

add-unknown-fields-to-the-schema<br />

<br />

<br />

Update Request Processor Factories<br />

What follows are brief descriptions of the currently available update request processors.<br />

UpdateRequestProcessorFactories can be integrated into an update chain in solrconfig.xml as necessary. You<br />

are strongly urged to examine the Javadocs for these classes; these descriptions are abridged snippets taken for<br />

the most part from the Javadocs.<br />

AddSchemaFieldsUpdateProcessorFactory:<br />

This processor will dynamically add fields to the schema if<br />

an input document contains one or more fields that don't match any field or dynamic field in the schema.<br />

CloneFieldUpdateProcessorFactory:<br />

Clones the values found in any matching source field into the<br />

configured dest field.<br />

DefaultValueUpdateProcessorFactory:<br />

A simple processor that adds a default value to any document<br />

which does not already have a value in fieldName.<br />

DocBasedVersionConstraintsProcessorFactory:<br />

This Factory generates an UpdateProcessor that<br />

helps to enforce version constraints on documents based on per-document version numbers using a<br />

configured name of a versionField.<br />

DocExpirationUpdateProcessorFactory:<br />

Update Processor Factory for managing automatic<br />

"expiration" of documents.<br />

IgnoreCommitOptimizeUpdateProcessorFactory:<br />

Allows you to ignore commit and/or optimize<br />

requests from client applications when running in <strong>Solr</strong>Cloud mode, for more information, see: Shards and<br />

Indexing Data in <strong>Solr</strong>Cloud<br />

RegexpBoostProcessorFactory:<br />

A processor which will match content of "inputField" against regular<br />

expressions found in "boostFilename", and if it matches will return the corresponding boost value from the<br />

file and output this to "boostField" as a double value.<br />

SignatureUpdateProcessorFactory:<br />

Uses a defined set of fields to generate a hash "signature" for<br />

the document. Useful for only indexing one copy of "similar" documents.<br />

StatelessScriptUpdateProcessorFactory:<br />

An update request processor factory that enables the use of<br />

update processors implemented as scripts.<br />

TimestampUpdateProcessorFactory:<br />

An update processor that adds a newly generated date value of<br />

"NOW" to any document being added that does not already have a value in the specified field.<br />

URLClassifyProcessorFactory:<br />

Update processor which examines a URL and outputs to various other<br />

fields with characteristics of that URL, including length, number of path levels, whether it is a top level<br />

URL (levels==0), whether it looks like a landing/index page, a canonical representation of the URL (e.g.<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

464

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!