public static class StemmerOverrideFilter.Builder extends Object
FST
for the StemmerOverrideFilter
Constructor and Description |
---|
StemmerOverrideFilter.Builder()
Creates a new
StemmerOverrideFilter.Builder with ignoreCase set to false |
StemmerOverrideFilter.Builder(boolean ignoreCase)
Creates a new
StemmerOverrideFilter.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
add(CharSequence input,
CharSequence output)
Adds an input string and it's stemmer override output to this builder.
|
StemmerOverrideFilter.StemmerOverrideMap |
build()
Returns an
StemmerOverrideFilter.StemmerOverrideMap to be used with the StemmerOverrideFilter |
public StemmerOverrideFilter.Builder()
StemmerOverrideFilter.Builder
with ignoreCase set to false
public StemmerOverrideFilter.Builder(boolean ignoreCase)
StemmerOverrideFilter.Builder
ignoreCase
- if the input case should be ignored.public boolean add(CharSequence input, CharSequence output)
input
- the input char sequenceoutput
- the stemmer override output char sequencefalse
iff the input has already been added to this builder otherwise true
.public StemmerOverrideFilter.StemmerOverrideMap build() throws IOException
StemmerOverrideFilter.StemmerOverrideMap
to be used with the StemmerOverrideFilter
StemmerOverrideFilter.StemmerOverrideMap
to be used with the StemmerOverrideFilter
IOException
- if an IOException
occurs;Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.