Exemplo n.º 1
0
        public void TestLucene1678BwComp()
        {
            QueryAutoStopWordAnalyzer a = new QueryAutoStopWordSubclassAnalyzer(Version.LUCENE_CURRENT);

            a.AddStopWords(reader, "repetitiveField", 10);
            int numHits = Search(a, "repetitiveField:boring");

            Assert.False(numHits == 0);
        }
 public void TestLucene1678BwComp()
 {
     QueryAutoStopWordAnalyzer a = new QueryAutoStopWordSubclassAnalyzer(Version.LUCENE_CURRENT);
     a.AddStopWords(reader, "repetitiveField", 10);
     int numHits = Search(a, "repetitiveField:boring");
     Assert.False(numHits == 0);
 }