public class PersianCharFilterFactory extends CharFilterFactory
PersianCharFilter
.
<fieldType name="text_fa" class="solr.TextField" positionIncrementGap="100"> <analyzer> <charFilter class="solr.PersianCharFilterFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/> </analyzer> </fieldType>
Modifier and Type | Field and Description |
---|---|
static String |
NAME
SPI name
|
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
PersianCharFilterFactory(Map<String,String> args)
Creates a new PersianCharFilterFactory
|
Modifier and Type | Method and Description |
---|---|
Reader |
create(Reader input)
Wraps the given Reader with a CharFilter.
|
Reader |
normalize(Reader input)
Normalize the specified input Reader
While the default implementation returns input unchanged,
char filters that should be applied at normalization time can delegate to
create method. |
availableCharFilters, findSPIName, forName, lookupClass, 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 Reader create(Reader input)
CharFilterFactory
create
in class CharFilterFactory
public Reader normalize(Reader input)
CharFilterFactory
create
method.normalize
in class CharFilterFactory
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.