SOLVED,

I didn't use SOLRJ, just normal Httpclient methodes + asynktask



HttpClient client = new DefaultHttpClient();
                         
                         URI uri = new URI(params[0]);
                         
                         HttpGet Gett = new HttpGet(uri);
                         
                         HttpResponse response= client.execute(Gett);
                         
                         InputStream stream = response.getEntity().getContent();
                         
                         reader = new BufferedReader(new 
InputStreamReader(stream));
                         
                         StringBuffer buffer = new StringBuffer("");
                         String line="";
                         String newline=System.getProperty("line.separator");
                         
                         while ((line= reader.readLine())!=null)
                         {
                                 buffer.append(line + newline);
                         }
                         reader.close();
                         
                         data= buffer.toString();
                         return data;



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solrj-problem-tp4135030p4135083.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to