package itn.let.solr.search.service;

import java.util.Map;
import java.util.Set;

import org.springframework.ui.ModelMap;

public interface SearchService {

	public static enum SOLR_CORE {
		INTRO("재단소개","intro"), 
		POLICY("정책연구","policy"), 
		SAFETY("안전교육","safety"), 
		NOTICE("알림정보","notice"), 
		COMMUNITY("소통참여","community"), 
		INFO("정보공개","info"); 
		private String name;
		private String value;

		private SOLR_CORE(String name, String value){
			this.name = name;
			this.value = value;
		}

		public String getName(){
			return this.name;
		}
		public String getValue(){
			return this.value;
		}
	}
	
	public Set<String> suggest(Map<String, Object> commandMap) throws Exception;
	
	public void search(Map<String, Object> commandMap, ModelMap model) throws Exception;
	
}
