Пример #1
0
            public virtual void  OnCommit(System.Collections.IList commits)
            {
                IndexCommit lastCommit = (IndexCommit)commits[commits.Count - 1];
                IndexReader r          = IndexReader.Open(dir);

                Assert.AreEqual(r.IsOptimized(), lastCommit.IsOptimized(), "lastCommit.isOptimized()=" + lastCommit.IsOptimized() + " vs IndexReader.isOptimized=" + r.IsOptimized());
                r.Close();
                Enclosing_Instance.VerifyCommitOrder(commits);
                numOnCommit++;
            }
Пример #2
0
 public override bool IsOptimized()
 {
     return(cp.IsOptimized());
 }