Пример #1
0
        public TestAnalyzer(Lucene.Net.Util.Version version, bool enablePositionIncrements, ISet <string> stopWords)
        {
            _version = version;
            _enablePositionIncrements = enablePositionIncrements;

            if (stopWords == null)
            {
                _stopWords = StopAnalyzer.ENGLISH_STOP_WORDS_SET;
            }
            else
            {
                _stopWords = stopWords;
            }
        }
Пример #2
0
 public TestAnalyzer(Lucene.Net.Util.Version version) : this(version, false, null)
 {
 }