Example usage for org.apache.lucene.analysis.cjk CJKAnalyzer getDefaultStopSet

List of usage examples for org.apache.lucene.analysis.cjk CJKAnalyzer getDefaultStopSet

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.cjk CJKAnalyzer getDefaultStopSet.

Prototype

public static CharArraySet getDefaultStopSet() 

Source Link

Document

Returns an unmodifiable instance of the default stop-words set.

Usage

From source file:buzztaiki.lucene.lastuni.CJKLastUniGramAnalyzer.java

License:Apache License

/**
 * Builds an analyzer which removes words in {@link CJKAnalyzer#getDefaultStopSet()}.
 */// w ww  .j  a va2  s.  co m
public CJKLastUniGramAnalyzer(Version matchVersion) {
    this(matchVersion, CJKAnalyzer.getDefaultStopSet());
}

From source file:com.github.buzztaiki.lucene.lastuni.CJKLastUniGramAnalyzer.java

License:Apache License

/**
 * Builds an analyzer which removes words in {@link CJKAnalyzer#getDefaultStopSet()}.
 *
 * @param matchVersion//  w w w  .  j a  v a  2s.  c o m
 *          lucene compatibility version
 * @param tokenizeLastUni
 *          flag to tokenize last charcter. set this to false when search
 */
public CJKLastUniGramAnalyzer(Version matchVersion, boolean tokenizeLastUni) {
    this(matchVersion, CJKAnalyzer.getDefaultStopSet(), tokenizeLastUni);
}

From source file:jp.mwsoft.cjkanalyzers.CJKAnalyzerBase.java

License:Apache License

/**
 * Returns an unmodifiable instance of the default stop-words set.
 * //w  w w. j a va  2s  . co  m
 * @return an unmodifiable instance of the default stop-words set.
 */
public static Set<?> getDefaultStopSet() {
    return CJKAnalyzer.getDefaultStopSet();
}

From source file:org.elasticsearch.analysis.common.CjkAnalyzerProvider.java

License:Apache License

CjkAnalyzerProvider(IndexSettings indexSettings, Environment env, String name, Settings settings) {
    super(indexSettings, name, settings);
    CharArraySet stopWords = Analysis.parseStopWords(env, settings, CJKAnalyzer.getDefaultStopSet());

    analyzer = new CJKAnalyzer(stopWords);
    analyzer.setVersion(version);/*  w  w  w.j  a v  a  2 s. c o  m*/
}

From source file:org.elasticsearch.index.analysis.CjkAnalyzerProvider.java

License:Apache License

@Inject
public CjkAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env,
        @Assisted String name, @Assisted Settings settings) {
    super(index, indexSettings, name, settings);
    CharArraySet stopWords = Analysis.parseStopWords(env, settings, CJKAnalyzer.getDefaultStopSet(), version);

    analyzer = new CJKAnalyzer(version, stopWords);
}