/** * Reinitialize the index of a repository. This will drop the existing index, recreate it with its settings and * mapping, the index will be empty. * * @since 7.1 */ default void dropAndInitRepositoryIndex(String repositoryName) { dropAndInitRepositoryIndex(repositoryName, true); }
@OperationMethod public Blob run() throws IOException { checkAccess(); esa.dropAndInitRepositoryIndex(session.getRepositoryName(), false); String commandId = submitBulkCommand("SELECT ecm:uuid FROM Document", true); log.warn(String.format("Submitted index command: %s to index the entire %s repository.", commandId, session.getRepositoryName())); return Blobs.createJSONBlobFromValue(Collections.singletonMap("commandId", commandId)); }