Example #1
0
 public virtual void test30StemOverrides()
 {
     DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_30);
     checkOneTerm(a, "fiets", "fiets");
     a = new DutchAnalyzer(Version.LUCENE_30, CharArraySet.EMPTY_SET);
     checkOneTerm(a, "fiets", "fiet"); // only the default ctor populates the dict
 }
Example #2
0
        //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
        //ORIGINAL LINE: public void testExclusionTableViaCtor() throws java.io.IOException
        public virtual void testExclusionTableViaCtor()
        {
            CharArraySet set = new CharArraySet(Version.LUCENE_30, 1, true);
            set.add("lichamelijk");
            DutchAnalyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, set);
            assertAnalyzesTo(a, "lichamelijk lichamelijke", new string[] {"lichamelijk", "licham"});

            a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, set);
            assertAnalyzesTo(a, "lichamelijk lichamelijke", new string[] {"lichamelijk", "licham"});
        }
Example #3
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testEmptyStemDictionary() throws java.io.IOException
 public virtual void testEmptyStemDictionary()
 {
     DutchAnalyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, CharArraySet.EMPTY_SET, CharArrayMap.emptyMap<string>());
     checkOneTerm(a, "fiets", "fiet");
 }
Example #4
0
 public virtual void testBuggyStopwordsCasing()
 {
     DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_30);
     assertAnalyzesTo(a, "Zelf", new string[] {"zelf"});
 }
Example #5
0
 public virtual void testBuggyStemOverrides()
 {
     DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_35, CharArraySet.EMPTY_SET);
     checkOneTerm(a, "fiets", "fiet");
 }
Example #6
0
 /// <summary>
 /// check that the default stem overrides are used
 /// even if you use a non-default ctor.
 /// </summary>
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testStemOverrides() throws java.io.IOException
 public virtual void testStemOverrides()
 {
     DutchAnalyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET);
     checkOneTerm(a, "fiets", "fiets");
 }
Example #7
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testSnowballCorrectness() throws Exception
 public virtual void testSnowballCorrectness()
 {
     Analyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT);
     checkOneTerm(a, "opheffen", "opheff");
     checkOneTerm(a, "opheffende", "opheff");
     checkOneTerm(a, "opheffing", "opheff");
 }
Example #8
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testReusableTokenStream() throws Exception
 public virtual void testReusableTokenStream()
 {
     Analyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT);
     checkOneTerm(a, "lichaamsziek", "lichaamsziek");
     checkOneTerm(a, "lichamelijk", "licham");
     checkOneTerm(a, "lichamelijke", "licham");
     checkOneTerm(a, "lichamelijkheden", "licham");
 }
Example #9
0
 public virtual void testOldBuggyStemmer()
 {
     Analyzer a = new DutchAnalyzer(Version.LUCENE_30);
     checkOneTerm(a, "opheffen", "ophef"); // versus snowball 'opheff'
     checkOneTerm(a, "opheffende", "ophef"); // versus snowball 'opheff'
     checkOneTerm(a, "opheffing", "ophef"); // versus snowball 'opheff'
 }