org.apache.solr.update.processor
Class HTMLStripFieldUpdateProcessorFactory
java.lang.Object
org.apache.solr.update.processor.UpdateRequestProcessorFactory
org.apache.solr.update.processor.FieldMutatingUpdateProcessorFactory
org.apache.solr.update.processor.HTMLStripFieldUpdateProcessorFactory
- All Implemented Interfaces:
- NamedListInitializedPlugin, SolrCoreAware
public final class HTMLStripFieldUpdateProcessorFactory
- extends FieldMutatingUpdateProcessorFactory
Strips all HTML Markup in any CharSequence values
found in fields matching the specified conditions.
By default this processor matches no fields
For example, with the configuration listed below any documents
containing HTML markup in any field declared in the schema using
StrField
will have that HTML striped away.
<processor class="solr.HTMLStripFieldUpdateProcessorFactory">
<str name="typeClass">solr.StrField</str>
</processor>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLStripFieldUpdateProcessorFactory
public HTMLStripFieldUpdateProcessorFactory()
getDefaultSelector
public FieldMutatingUpdateProcessor.FieldNameSelector getDefaultSelector(SolrCore core)
- Description copied from class:
FieldMutatingUpdateProcessorFactory
- Defines the default selection behavior when the user has not
configured any specific criteria for selecting fields. The Default
implementation matches all fields, and should be overridden by subclasses
as needed.
- Overrides:
getDefaultSelector
in class FieldMutatingUpdateProcessorFactory
- See Also:
FieldMutatingUpdateProcessor.SELECT_ALL_FIELDS
getInstance
public UpdateRequestProcessor getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next)
- Specified by:
getInstance
in class UpdateRequestProcessorFactory
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.