1 package org.kuali.ole.docstore.discovery.service; 2 3 /** 4 * Class for administrative or maintenance services. 5 * User: tirumalesh.b 6 * Date: 23/12/11 Time: 11:26 AM 7 */ 8 public interface AdminService { 9 10 /** 11 * Optimizes the given index. (In solr, it is called core.) 12 * @param indexName 13 */ 14 public void optimize(String indexName) throws Exception; 15 16 /** 17 * Optimizes all available indexes. 18 */ 19 public void optimize() throws Exception; 20 21 /** 22 * Optimize the indexes according to params 23 * 24 * @param waitFlush 25 * @param waitSearcher 26 * @throws Exception 27 * waitFlush Default is true. Blocks until index changes are flushed to disk. 28 * waitSearcher Default is true. Blocks until a new searcher is opened and registered as 29 * the main query searcher, making the changes visible. 30 */ 31 public void optimize(Boolean waitFlush, Boolean waitSearcher) throws Exception; 32 33 34 }