Subversion Repositories SmartDukaan

Rev

Rev 2946 | Rev 3223 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2946 Rev 2949
Line 44... Line 44...
44
	static {
44
	static {
45
		String solr_url = null;
45
		String solr_url = null;
46
		try {
46
		try {
47
			solr_url = ConfigClient.getClient().get("solr_url");
47
			solr_url = ConfigClient.getClient().get("solr_url");
48
		}catch(ConfigException cex){
48
		}catch(ConfigException cex){
49
			cex.printStackTrace();
49
		    log.error("Unable to get the solr URL from the config server. Setting the default value.", cex);
50
			solr_url = "http://localhost:8983/solr/select/";
50
			solr_url = "http://localhost:8983/solr/select/";
51
		}
51
		}
52
		SOLR_URL = solr_url;
52
		SOLR_URL = solr_url;
53
	}
53
	}
54
	
54