org.elasticsearch.index.analysis
Class Analysis

java.lang.Object
  extended by org.elasticsearch.index.analysis.Analysis

public class Analysis
extends java.lang.Object


Constructor Summary
Analysis()
           
 
Method Summary
static java.util.Set<java.lang.String> getWordList(Settings settings, java.lang.String settingPrefix)
          Fetches a list of words from the specified settings file.
static boolean isNoStopwords(Settings settings)
           
static java.util.Set<?> parseStopWords(Settings settings, java.util.Set<?> defaultStopWords)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Analysis

public Analysis()
Method Detail

isNoStopwords

public static boolean isNoStopwords(Settings settings)

parseStopWords

public static java.util.Set<?> parseStopWords(Settings settings,
                                              java.util.Set<?> defaultStopWords)

getWordList

public static java.util.Set<java.lang.String> getWordList(Settings settings,
                                                          java.lang.String settingPrefix)
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:
ElasticSearchIllegalArgumentException - If the word list cannot be found at either key.