Class EngineTestUtils

java.lang.Object
org.elasticsearch.index.EngineTestUtils

public final class EngineTestUtils extends Object
  • Method Details

    • getDocIds

      public static List<DocIdSeqNoAndSource> getDocIds(Engine engine, boolean refresh) throws IOException
      Gets a collection of tuples of docId, sequence number, and primary term of all live documents in the provided engine. Note: this method has limited support for reading document fields and should not be used outside of engine unit tests. For example, it does not support synthetic fields or reading documents from a NoOpEngine. For integration tests, use the ESIntegTestCase.getDocIdAndSeqNos(IndexShard) method.
      Throws:
      IOException