On 5/5/2014 11:05 AM, blach wrote:
> 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)); }

Do you get any output to stderr?  Have you looked in the solr logfile to
see if there's an error logged there?

Note that you should add the core name to the URL -- using a path of
just /solr is deprecated in the newest Solr versions.

http://localhost:8983/solr/corename

Thanks,
Shawn

Reply via email to