Subversion Repositories SmartDukaan

Rev

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

Rev 28315 Rev 28316
Line 223... Line 223...
223
			params.put("fl", "*, [child parentFilter=id:catalog*]");
223
			params.put("fl", "*, [child parentFilter=id:catalog*]");
224
			params.put("sort", "rank_i asc, create_s desc");
224
			params.put("sort", "rank_i asc, create_s desc");
225
			params.put("wt", "json");
225
			params.put("wt", "json");
226
			String response = null;
226
			String response = null;
227
			try {
227
			try {
228
				response = rc.get(solrUrl, params, new HashMap<>());
228
				response = rc.get(SchemeType.HTTP, solrUrl, 8984, "solr/demo/select", params);
229
			} catch (HttpHostConnectException e) {
229
			} catch (HttpHostConnectException e) {
230
				throw new ProfitMandiBusinessException("", "", "Could not connect to host");
230
				throw new ProfitMandiBusinessException("", "", "Could not connect to host");
231
			}
231
			}
232
			JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
232
			JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
233
			JSONArray docs = solrResponseJSONObj.getJSONArray("docs");
233
			JSONArray docs = solrResponseJSONObj.getJSONArray("docs");