public static void main( String hashdataFile, String catFile, String relInsFile, String relFile, String config_file) { try { Properties pro = Config.readConfigFile(config_file); Config.BSDDir = pro.getProperty(Config.TMP_DIR) + "/"; Config.dir = pro.getProperty(Config.DATA_FOR_INDEX_DIR) + "/"; if (!new File(Config.dir).exists()) new File(Config.dir).mkdirs(); Main main = new Main(); main.sort(hashdataFile, catFile, relInsFile, relFile); // main.genCatRel(); main.genRS_RO_(); DataTransForm trans = new DataTransForm(); trans.transForm(config.dir); } catch (Exception e) { e.printStackTrace(); } }
public void init(String configFile) throws Exception { Properties config = Config.readConfigFile(configFile); XFacetedSearchService searchService = searchFactory.getXFacetedSearchService(config); searcher = searchService.getXFacetedSearchable(); }