| 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);
|