java.lang.Object
org.elasticsearch.index.analysis.Analysis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReadergetReaderFromFile(Environment env, String filePath, String settingPrefix) static ReadergetReaderFromIndex(String synonymsSet, SynonymsManagementAPIService synonymsManagementAPIService, boolean ignoreMissing) 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.getWordList(Environment env, Settings settings, String settingPath, String settingList, String settingLenient, boolean removeComments, boolean checkDuplicate) 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)
-
Constructor Details
-
Analysis
public Analysis()
-
-
Method Details
-
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.
-
getWordList
-
getReaderFromFile
- Returns:
- null If no settings set for "settingsPrefix" then return
null. - Throws:
IllegalArgumentException- If the Reader can not be instantiated.
-
getReaderFromIndex
public static Reader getReaderFromIndex(String synonymsSet, SynonymsManagementAPIService synonymsManagementAPIService, boolean ignoreMissing)
-