public int flushIndex() {
        final FindIndexShardCriteria criteria = FindIndexShardCriteria.matchAll();
        indexShardManager.performAction(criteria, IndexShardAction.FLUSH);

        return 1;
    }
Class to create test data for use in all search tests.
stroom-app/src/test/java/stroom/search/CommonIndexingTestHelper.java