Package org.elasticsearch.index
Class EngineTestUtils
java.lang.Object
org.elasticsearch.index.EngineTestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<DocIdSeqNoAndSource> Gets a collection of tuples of docId, sequence number, and primary term of all live documents in the provided engine.
-
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 aNoOpEngine. For integration tests, use theESIntegTestCase.getDocIdAndSeqNos(IndexShard)method.- Throws:
IOException
-