Package org.elasticsearch.index.analysis
Class Analysis
java.lang.Object
org.elasticsearch.index.analysis.Analysis
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckForDeprecatedVersion(String name, Settings settings)static ReadergetReaderFromFile(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.CharArraySetgetWordSet(Environment env, Settings settings, String settingsPrefix)static org.apache.lucene.analysis.CharArraySetparseArticles(Environment env, Settings settings)static org.apache.lucene.analysis.CharArraySetparseCommonWords(Environment env, Settings settings, org.apache.lucene.analysis.CharArraySet defaultCommonWords, boolean ignoreCase)static org.apache.lucene.analysis.CharArraySetparseStemExclusion(Settings settings, org.apache.lucene.analysis.CharArraySet defaultStemExclusion)static org.apache.lucene.analysis.CharArraySetparseStopWords(Environment env, Settings settings, org.apache.lucene.analysis.CharArraySet defaultStopWords)static org.apache.lucene.analysis.CharArraySetparseStopWords(Environment env, Settings settings, org.apache.lucene.analysis.CharArraySet defaultStopWords, boolean ignoreCase)static org.apache.lucene.analysis.CharArraySetparseWords(Environment env, Settings settings, String name, org.apache.lucene.analysis.CharArraySet defaultWords, Map<String,Set<?>> namedWords, boolean ignoreCase)
-
Field Details
-
NAMED_STOP_WORDS
-
-
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 bysettingListor 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.
-