public class IndexOptions extends Object
| Constructor and Description |
|---|
IndexOptions()
Create an IndexOptions with default values.
|
IndexOptions(String language,
boolean ignoreDiacritics)
Create an IndexOptions with the given language and ignoreDiacritics value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLanguage()
Get the language option.
|
boolean |
isIgnoreDiacritics()
Get the ignoring diacritics option.
|
public IndexOptions()
The default language is null, which means using the language of the current locale.
The default ignoreDiacritics is false, which means not ignoring accents/diacritical
marks.
public IndexOptions(String language, boolean ignoreDiacritics)
language - the language code, e.g. "en" or "de". This affects how word breaks and
word stems are parsed. Use null for current locale and ""
to disable stemming.ignoreDiacritics - true to ignore accents/diacritical marks.public String getLanguage()
public boolean isIgnoreDiacritics()