public class HTMLStripCharFilterFactory extends CharFilterFactory
HTMLStripCharFilter
.
<fieldType name="text_html" class="solr.TextField" positionIncrementGap="100"> <analyzer> <charFilter class="solr.HTMLStripCharFilterFactory" escapedTags="a, title" /> <tokenizer class="solr.WhitespaceTokenizerFactory"/> </analyzer> </fieldType>
Modifier and Type | Field and Description |
---|---|
static String |
NAME
SPI name
|
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
HTMLStripCharFilterFactory(Map<String,String> args)
Creates a new HTMLStripCharFilterFactory
|
Modifier and Type | Method and Description |
---|---|
HTMLStripCharFilter |
create(Reader input)
Wraps the given Reader with a CharFilter.
|
availableCharFilters, findSPIName, forName, lookupClass, normalize, reloadCharFilters
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, splitAt, splitFileNames
public static final String NAME
public HTMLStripCharFilter create(Reader input)
CharFilterFactory
create
in class CharFilterFactory
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.