Subversion Repositories SmartDukaan

Rev

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

Rev 33436 Rev 33487
Line 773... Line 773...
773
        params.put("start", String.valueOf(0));
773
        params.put("start", String.valueOf(0));
774
        params.put("rows", String.valueOf(100));
774
        params.put("rows", String.valueOf(100));
775
        params.put("wt", "json");
775
        params.put("wt", "json");
776
        String response = null;
776
        String response = null;
777
        try {
777
        try {
778
            response = rc.get(SchemeType.HTTP, "50.116.10.120", 8984, "solr/demo/select", params);
778
            response = rc.get(SchemeType.HTTP, solrUrl, 8984, "solr/demo/select", params);
779
        } catch (HttpHostConnectException e) {
779
        } catch (HttpHostConnectException e) {
780
            throw new ProfitMandiBusinessException("", "", "Could not connect to host");
780
            throw new ProfitMandiBusinessException("", "", "Could not connect to host");
781
        }
781
        }
782
        JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
782
        JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
783
        JSONArray docs = solrResponseJSONObj.getJSONArray("docs");
783
        JSONArray docs = solrResponseJSONObj.getJSONArray("docs");