Exemplo n.º 1
0
        public virtual void TestRewrite()
        {
            PhraseQuery pq = new PhraseQuery();

            pq.Add(new Term("foo", "bar"));
            Query rewritten = pq.Rewrite(searcher.IndexReader);

            Assert.IsTrue(rewritten is TermQuery);
        }
Exemplo n.º 2
0
 public virtual void TestRewrite()
 {
     PhraseQuery pq = new PhraseQuery();
     pq.Add(new Term("foo", "bar"));
     Query rewritten = pq.Rewrite(Searcher.IndexReader);
     Assert.IsTrue(rewritten is TermQuery);
 }