You can use the areDocumentSearchable method to know whether the last pushed documents are searchable.
Example 15. Java Code
static void waitForDocumentsAreSearchable() throws PushAPIException { // get the serial that can be used to track processing status of documents final BigInteger serial = papi.setCheckpoint("no value", "foo");
static void WaitForDocumentsAreSearchable() { // get the serial that can be used to track processing status of documents ulong serial = papi.SetCheckpoint("no value", "foo");