java.lang.Object
org.elasticsearch.index.analysis.Analysis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkForDeprecatedVersion
(String name, Settings settings) static Reader
getReaderFromFile
(Environment env, Settings settings, String settingPrefix) getWordList
(Environment env, Settings settings, String settingPrefix) Fetches a list of words from the specified settings file.getWordList
(Environment env, Settings settings, String settingPath, String settingList, boolean removeComments) Fetches a list of words from the specified settings file.static org.apache.lucene.analysis.CharArraySet
getWordSet
(Environment env, Settings settings, String settingsPrefix) static org.apache.lucene.analysis.CharArraySet
parseArticles
(Environment env, Settings settings) static org.apache.lucene.analysis.CharArraySet
parseCommonWords
(Environment env, Settings settings, org.apache.lucene.analysis.CharArraySet defaultCommonWords, boolean ignoreCase) static org.apache.lucene.analysis.CharArraySet
parseStemExclusion
(Settings settings, org.apache.lucene.analysis.CharArraySet defaultStemExclusion) static org.apache.lucene.analysis.CharArraySet
parseStopWords
(Environment env, Settings settings, org.apache.lucene.analysis.CharArraySet defaultStopWords) static org.apache.lucene.analysis.CharArraySet
parseStopWords
(Environment env, Settings settings, org.apache.lucene.analysis.CharArraySet defaultStopWords, boolean ignoreCase) static org.apache.lucene.analysis.CharArraySet
parseWords
(Environment env, Settings settings, String name, org.apache.lucene.analysis.CharArraySet defaultWords, Map<String, Set<?>> namedWords, boolean ignoreCase)
-
Constructor Details
-
Analysis
public Analysis()
-
-
Method Details
-
checkForDeprecatedVersion
-
parseStemExclusion
public static org.apache.lucene.analysis.CharArraySet parseStemExclusion(Settings settings, org.apache.lucene.analysis.CharArraySet defaultStemExclusion) -
parseWords
-
parseCommonWords
public static org.apache.lucene.analysis.CharArraySet parseCommonWords(Environment env, Settings settings, org.apache.lucene.analysis.CharArraySet defaultCommonWords, boolean ignoreCase) -
parseArticles
public static org.apache.lucene.analysis.CharArraySet parseArticles(Environment env, Settings settings) -
parseStopWords
public static org.apache.lucene.analysis.CharArraySet parseStopWords(Environment env, Settings settings, org.apache.lucene.analysis.CharArraySet defaultStopWords) -
parseStopWords
public static org.apache.lucene.analysis.CharArraySet parseStopWords(Environment env, Settings settings, org.apache.lucene.analysis.CharArraySet defaultStopWords, boolean ignoreCase) -
getWordSet
public static org.apache.lucene.analysis.CharArraySet getWordSet(Environment env, Settings settings, String settingsPrefix) -
getWordList
Fetches a list of words from the specified settings file. The list should either be available at the key specified by settingsPrefix or in a file specified by settingsPrefix + _path.- Throws:
IllegalArgumentException
- If the word list cannot be found at either key.
-
getWordList
public static List<String> getWordList(Environment env, Settings settings, String settingPath, String settingList, boolean removeComments) Fetches a list of words from the specified settings file. The list should either be available at the key specified bysettingList
or in a file specified bysettingPath
.- Throws:
IllegalArgumentException
- If the word list cannot be found at either key.
-
getReaderFromFile
- Returns:
- null If no settings set for "settingsPrefix" then return
null
. - Throws:
IllegalArgumentException
- If the Reader can not be instantiated.
-