@Deprecated public final class Lucene47WordDelimiterFilter extends TokenFilter
WordDelimiterFilter
AttributeSource.State
Modifier and Type | Field and Description |
---|---|
static int |
ALPHA
Deprecated.
|
static int |
ALPHANUM
Deprecated.
|
static int |
CATENATE_ALL
Deprecated.
Causes all subword parts to be catenated:
"wi-fi-4000" => "wifi4000"
|
static int |
CATENATE_NUMBERS
Deprecated.
Causes maximum runs of word parts to be catenated:
"wi-fi" => "wifi"
|
static int |
CATENATE_WORDS
Deprecated.
Causes maximum runs of word parts to be catenated:
"wi-fi" => "wifi"
|
static int |
DIGIT
Deprecated.
|
static int |
GENERATE_NUMBER_PARTS
Deprecated.
Causes number subwords to be generated:
"500-42" => "500" "42"
|
static int |
GENERATE_WORD_PARTS
Deprecated.
Causes parts of words to be generated:
"PowerShot" => "Power" "Shot"
|
static int |
LOWER
Deprecated.
|
static int |
PRESERVE_ORIGINAL
Deprecated.
Causes original words are preserved and added to the subword list (Defaults to false)
"500-42" => "500" "42" "500-42"
|
static int |
SPLIT_ON_CASE_CHANGE
Deprecated.
If not set, causes case changes to be ignored (subwords will only be generated
given SUBWORD_DELIM tokens)
|
static int |
SPLIT_ON_NUMERICS
Deprecated.
If not set, causes numeric changes to be ignored (subwords will only be generated
given SUBWORD_DELIM tokens).
|
static int |
STEM_ENGLISH_POSSESSIVE
Deprecated.
Causes trailing "'s" to be removed for each subword
"O'Neil's" => "O", "Neil"
|
static int |
SUBWORD_DELIM
Deprecated.
|
static int |
UPPER
Deprecated.
|
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
DEFAULT_ATTRIBUTE_FACTORY
Constructor and Description |
---|
Lucene47WordDelimiterFilter(TokenStream in,
byte[] charTypeTable,
int configurationFlags,
CharArraySet protWords)
Deprecated.
Creates a new WordDelimiterFilter
|
Lucene47WordDelimiterFilter(TokenStream in,
int configurationFlags,
CharArraySet protWords)
Deprecated.
Creates a new WordDelimiterFilter using
WordDelimiterIterator.DEFAULT_WORD_DELIM_TABLE
as its charTypeTable |
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken()
Deprecated.
|
void |
reset()
Deprecated.
|
close, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public static final int LOWER
public static final int UPPER
public static final int DIGIT
public static final int SUBWORD_DELIM
public static final int ALPHA
public static final int ALPHANUM
public static final int GENERATE_WORD_PARTS
public static final int GENERATE_NUMBER_PARTS
public static final int CATENATE_WORDS
public static final int CATENATE_NUMBERS
public static final int CATENATE_ALL
public static final int PRESERVE_ORIGINAL
public static final int SPLIT_ON_CASE_CHANGE
public static final int SPLIT_ON_NUMERICS
public static final int STEM_ENGLISH_POSSESSIVE
public Lucene47WordDelimiterFilter(TokenStream in, byte[] charTypeTable, int configurationFlags, CharArraySet protWords)
in
- TokenStream to be filteredcharTypeTable
- table containing character typesconfigurationFlags
- Flags configuring the filterprotWords
- If not null is the set of tokens to protect from being delimitedpublic Lucene47WordDelimiterFilter(TokenStream in, int configurationFlags, CharArraySet protWords)
WordDelimiterIterator.DEFAULT_WORD_DELIM_TABLE
as its charTypeTablein
- TokenStream to be filteredconfigurationFlags
- Flags configuring the filterprotWords
- If not null is the set of tokens to protect from being delimitedpublic boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
public void reset() throws IOException
reset
in class TokenFilter
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.