Subversion Repositories SmartDukaan

Rev

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

Rev 25386 Rev 26581
Line 36... Line 36...
36
		params.put("start", String.valueOf(0));
36
		params.put("start", String.valueOf(0));
37
		params.put("rows", String.valueOf(20));
37
		params.put("rows", String.valueOf(20));
38
		params.put("wt", "json");
38
		params.put("wt", "json");
39
		String response = null;
39
		String response = null;
40
		try {
40
		try {
41
			response = rc.get(SchemeType.HTTP, "dtr", 8984, "solr/demo/select", params);
41
			response = rc.get(SchemeType.HTTP, "192.168.179.131", 8984, "solr/demo/select", params);
42
		} catch (HttpHostConnectException e) {
42
		} catch (HttpHostConnectException e) {
43
			throw new ProfitMandiBusinessException("", "", "Could not connect to host");
43
			throw new ProfitMandiBusinessException("", "", "Could not connect to host");
44
		}
44
		}
45
		JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
45
		JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
46
		JSONArray docs = solrResponseJSONObj.getJSONArray("docs");
46
		JSONArray docs = solrResponseJSONObj.getJSONArray("docs");