PropertyConfigurator.configure (Constants.LOG4J_FILE);
logger = Logger.getLogger(Search.class.getName());
//*-- set the index and database directories
CrawlConfig crawlConfig = new CrawlConfig(false); //*-- initialize from the properties file
Constants.setDBDIR( crawlConfig.getDbDir() ); Constants.setINDEXDIR( crawlConfig.getIndexDir() );
//*-- Create the Berkeley DB environment for read only access
dbt = new DbTools(); dbt.openEnv(Constants.getDBDIR(), true);
Constants.setDbt(dbt);