public static class StemmerOverrideFilter.Builder extends Object
FST
for the StemmerOverrideFilter
Constructor and Description |
---|
Builder()
Creates a new
StemmerOverrideFilter.Builder with ignoreCase set to false |
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 its stemmer override output to this builder.
|
StemmerOverrideFilter.StemmerOverrideMap |
build()
Returns an
StemmerOverrideFilter.StemmerOverrideMap to be used with the StemmerOverrideFilter |
public Builder()
StemmerOverrideFilter.Builder
with ignoreCase set to false
public 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-2021 Apache Software Foundation. All Rights Reserved.