Package org.apache.lucene.index

Examples of org.apache.lucene.index.DirectoryReader.numDeletedDocs()


      Assert.assertEquals("writer has non-deleted docs",
                          0, w.numDocs());
      w.close();
      DirectoryReader r = DirectoryReader.open(d);
      Assert.assertEquals("reader has wrong number of deleted docs",
                          numDeletedDocs, r.numDeletedDocs());
      return r;
  }

  /** alternate scorer skipTo(),skipTo(),next(),next(),skipTo(),skipTo(), etc
   * and ensure a hitcollector receives same docs and scores
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.