@Deprecated public class LegacyHTMLStripCharFilterFactory extends CharFilterFactory
LegacyHTMLStripCharFilter
.
<fieldType name="text_html_legacy" class="solr.TextField" positionIncrementGap="100"> <analyzer> <charFilter class="solr.LegacyHTMLStripCharFilterFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/> </analyzer> </fieldType>
This factory is NOT recommended for new users and should be considered UNSUPPORTED.
In Solr version 3.5 and earlier, HTMLStripCharFilter(Factory) had known bugs in the offsets it provided, triggering e.g. exceptions in highlighting.
This class is provided as possible alternative for people who depend on the "broken" behavior of HTMLStripCharFilter in Solr version 3.5 and earlier, and/or who don't like the changes introduced by the Solr 3.6+ version of HTMLStripCharFilterFactory. (See the 3.6.0 release section of lucene/CHANGES.txt for a list of differences in behavior.)
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
LegacyHTMLStripCharFilterFactory(Map<String,String> args)
Deprecated.
Creates a new LegacyHTMLStripCharFilterFactory
|
Modifier and Type | Method and Description |
---|---|
LegacyHTMLStripCharFilter |
create(Reader input)
Deprecated.
|
availableCharFilters, forName, lookupClass, reloadCharFilters
assureMatchVersion, get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitFileNames
public LegacyHTMLStripCharFilter create(Reader input)
create
in class CharFilterFactory
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.