public class CapitalizationFilterFactory extends TokenFilterFactory
CapitalizationFilter
.
The factory takes parameters:<fieldType name="text_cptlztn" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.CapitalizationFilterFactory" onlyFirstWord="true" keep="java solr lucene" keepIgnoreCase="false" okPrefix="McK McD McA"/> </analyzer> </fieldType>
Modifier and Type | Field and Description |
---|---|
static String |
FORCE_FIRST_LETTER |
static String |
KEEP |
static String |
KEEP_IGNORE_CASE |
static String |
MAX_TOKEN_LENGTH |
static String |
MAX_WORD_COUNT |
static String |
MIN_WORD_LENGTH |
static String |
OK_PREFIX |
static String |
ONLY_FIRST_WORD |
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
CapitalizationFilterFactory(Map<String,String> args)
Creates a new CapitalizationFilterFactory
|
Modifier and Type | Method and Description |
---|---|
CapitalizationFilter |
create(TokenStream input)
Transform the specified input TokenStream
|
availableTokenFilters, forName, lookupClass, reloadTokenFilters
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 static final String KEEP
public static final String KEEP_IGNORE_CASE
public static final String OK_PREFIX
public static final String MIN_WORD_LENGTH
public static final String MAX_WORD_COUNT
public static final String MAX_TOKEN_LENGTH
public static final String ONLY_FIRST_WORD
public static final String FORCE_FIRST_LETTER
public CapitalizationFilter create(TokenStream input)
TokenFilterFactory
create
in class TokenFilterFactory
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.