Subversion Repositories SmartDukaan

Rev

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

Rev 22328 Rev 22330
Line 147... Line 147...
147
			params.put("fl", "*, [child parentFilter=id:catalog*]");
147
			params.put("fl", "*, [child parentFilter=id:catalog*]");
148
			params.put("sort", "rank_i asc");
148
			params.put("sort", "rank_i asc");
149
			params.put("start", String.valueOf(offset));
149
			params.put("start", String.valueOf(offset));
150
			params.put("rows", String.valueOf(limit));
150
			params.put("rows", String.valueOf(limit));
151
			params.put("wt", "json");
151
			params.put("wt", "json");
-
 
152
			logger.info(rc.getUrl());
152
			String response  =rc.get("solr/demo/select", params);
153
			String response  =rc.get("solr/demo/select", params);
153
			JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
154
			JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
154
			JSONArray docs = solrResponseJSONObj.getJSONArray("docs");
155
			JSONArray docs = solrResponseJSONObj.getJSONArray("docs");
155
			for(int i=0; i < docs.length(); i++) {
156
			for(int i=0; i < docs.length(); i++) {
156
				Map<Integer, FofoAvailabilityInfo> fofoAvailabilityInfoMap = new HashMap<>();
157
				Map<Integer, FofoAvailabilityInfo> fofoAvailabilityInfoMap = new HashMap<>();