Analyzer for English.
Inheritance: Lucene.Net.Analysis.Util.StopwordAnalyzerBase
 public virtual void TestExclude()
 {
     CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("books"), false);
     Analyzer a = new EnglishAnalyzer(TEST_VERSION_CURRENT, EnglishAnalyzer.DefaultStopSet, exclusionSet);
     CheckOneTerm(a, "books", "books");
     CheckOneTerm(a, "book", "book");
 }
Esempio n. 2
0
        public virtual void TestExclude()
        {
            CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("books"), false);
            Analyzer     a            = new EnglishAnalyzer(TEST_VERSION_CURRENT, EnglishAnalyzer.DefaultStopSet, exclusionSet);

            CheckOneTerm(a, "books", "books");
            CheckOneTerm(a, "book", "book");
        }
 public virtual void TestBasics()
 {
     Analyzer a = new EnglishAnalyzer(TEST_VERSION_CURRENT);
     // stemming
     CheckOneTerm(a, "books", "book");
     CheckOneTerm(a, "book", "book");
     // stopword
     AssertAnalyzesTo(a, "the", new string[] { });
     // possessive removal
     CheckOneTerm(a, "steven's", "steven");
     CheckOneTerm(a, "steven\u2019s", "steven");
     CheckOneTerm(a, "steven\uFF07s", "steven");
 }
Esempio n. 4
0
        public virtual void TestBasics()
        {
            Analyzer a = new EnglishAnalyzer(TEST_VERSION_CURRENT);

            // stemming
            CheckOneTerm(a, "books", "book");
            CheckOneTerm(a, "book", "book");
            // stopword
            AssertAnalyzesTo(a, "the", new string[] { });
            // possessive removal
            CheckOneTerm(a, "steven's", "steven");
            CheckOneTerm(a, "steven\u2019s", "steven");
            CheckOneTerm(a, "steven\uFF07s", "steven");
        }