Package 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
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>
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.update.processor.FieldMutatingUpdateProcessorFactory
FieldMutatingUpdateProcessorFactory.SelectorParamsNested classes/interfaces inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
UpdateRequestProcessorFactory.RunAlways -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultSelector(SolrCore core) Defines the default selection behavior when the user has not configured any specific criteria for selecting fields.getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next) Methods inherited from class org.apache.solr.update.processor.FieldMutatingUpdateProcessorFactory
getSelector, inform, init, parseSelectorExclusionParams, parseSelectorParams
-
Constructor Details
-
HTMLStripFieldUpdateProcessorFactory
public HTMLStripFieldUpdateProcessorFactory()
-
-
Method Details
-
getDefaultSelector
Description copied from class:FieldMutatingUpdateProcessorFactoryDefines 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:
getDefaultSelectorin classFieldMutatingUpdateProcessorFactory- See Also:
-
getInstance
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next) - Specified by:
getInstancein classUpdateRequestProcessorFactory
-