Subversion Repositories SmartDukaan

Rev

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

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