Yes Im reading about SOLRJ now

I wrote this code for it, but its the same problem, in this case all the app
is stopping, this is the code
                             String urlString =
"http://localhost:8983/solr";;
                                SolrServer solr = new HttpSolrServer(urlString);
                                

                                    SolrQuery query = new SolrQuery();
                                    query.set("q", "mem");
                                  
                                       QueryResponse response = null;
                                        
                                                try {
                                                        response = 
solr.query(query);
                                                } catch (SolrServerException e) 
{
                                                        // TODO Auto-generated 
catch block
                                                        e.printStackTrace();
                                                }
                                        
                                    SolrDocumentList results = 
response.getResults();
                                    for (int i = 0; i < results.size(); ++i) {
                                      
                                        etxt2.setText((CharSequence) 
results.get(i));
                                    }
                                



--
View this message in context: 
http://lucene.472066.n3.nabble.com/can-t-make-GET-request-to-solr-in-android-app-tp4134584p4134735.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to