Exemplo n.º 1
0
        public virtual void TestCustomProvider()
        {
            IAutomatonProvider myProvider = new AutomatonProviderAnonymousInnerClassHelper(this);
            RegexpQuery        query      = new RegexpQuery(NewTerm("<quickBrown>"), RegExpSyntax.ALL, myProvider);

            Assert.AreEqual(1, Searcher.Search(query, 5).TotalHits);
        }
Exemplo n.º 2
0
 public virtual void TestCustomProvider()
 {
     AutomatonProvider myProvider = new AutomatonProviderAnonymousInnerClassHelper(this);
     RegexpQuery query = new RegexpQuery(NewTerm("<quickBrown>"), RegExp.ALL, myProvider);
     Assert.AreEqual(1, Searcher.Search(query, 5).TotalHits);
 }