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 * 13 * @param indexName 14 */ 15 public void optimize(String indexName) throws Exception; 16 17 /** 18 * Optimizes all available indexes. 19 */ 20 public void optimize() throws Exception; 21 22 /** 23 * Optimize the indexes according to params 24 * 25 * @param waitFlush 26 * @param waitSearcher 27 * @throws Exception 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 }