Subversion Repositories SmartDukaan

Rev

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

Rev 24016 Rev 24024
Line 209... Line 209...
209
				throw new ProfitMandiBusinessException("", "", "Could not connect to host");
209
				throw new ProfitMandiBusinessException("", "", "Could not connect to host");
210
			}
210
			}
211
			JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
211
			JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
212
			JSONArray docs = solrResponseJSONObj.getJSONArray("docs");
212
			JSONArray docs = solrResponseJSONObj.getJSONArray("docs");
213
			Map<Integer, TagListing> itemTagListingMap = null;
213
			Map<Integer, TagListing> itemTagListingMap = null;
214
			if (hotDeal && docs.length() > 0) {
214
			if (docs.length() > 0) {
215
				HashSet<Integer> itemsSet = new HashSet<>();
215
				HashSet<Integer> itemsSet = new HashSet<>();
216
				for (int i = 0; i < docs.length(); i++) {
216
				for (int i = 0; i < docs.length(); i++) {
217
					JSONObject doc = docs.getJSONObject(i);
217
					JSONObject doc = docs.getJSONObject(i);
218
					for (int j = 0; j < doc.getJSONArray("_childDocuments_").length(); j++) {
218
					for (int j = 0; j < doc.getJSONArray("_childDocuments_").length(); j++) {
219
						JSONObject childItem = doc.getJSONArray("_childDocuments_").getJSONObject(j);
219
						JSONObject childItem = doc.getJSONArray("_childDocuments_").getJSONObject(j);