: I'm new to Solr and have get the following error when i want to add Data to : the Server instance: : : SolrServer server = getSolrServer(); // The method getSolrServer() is : undefined for the type Upload
"Upload" seems to be a class you have written, and you don't have a method named getSolrServer() in the code you mailed out ... what are you expecting that line of code to do? : String url = "http://localhost:8080/solr"; : SolrServer server = new CommonsHttpSolrServer( url ); ... : server = getSolrServer(); // Here comes the Error : : SolrServer server = getSolrServer(); ...you've already assigned something to the "server" variable, so i'm not sure what you want your getSolrServer() method to do ... and your code shouldn't even compile becore you're trying to declare two variables named "server" i nthe same scope. -Hoss