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); }
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); }