public interface AdminService
void optimize(String indexName) throws Exception
indexName - Exceptionvoid optimize(Boolean waitFlush, Boolean waitSearcher) throws Exception
waitFlush - waitSearcher - Exception - waitFlush       Default is true. Blocks until index changes are flushed to disk.
                   waitSearcher Default is true. Blocks until a new searcher is opened and registered as
                   the main query searcher, making the changes visible.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.