I build my webpage for searching and create a servlet for it but it is not working
I using this Ajax for calling servlet :- $.ajax({ url: contextPath + '/GetResults', data: { qu: $("#query").val() }, dataType: 'json' }).done(function (result) { //get the result on table } And on servlet I coded :- Try{ SolrServer server = new HttpSolrServer(Core.solrResourceBundle.getString("//http://172.16.0.1:8983/S earchCore")); ModifiableSolrParams params = new ModifiableSolrParams(); String qqq = new String(request.getParameter("qu").getBytes("ISO-8859-1"), "UTF-8"); params.set("q", new String(request.getParameter("qu").getBytes("ISO-8859-1"), "UTF-8")); params.set("rows", "30000"); params.set("spellcheck", "on"); params.set("spellcheck.build", "true"); params.set("wt", "json"); params.set("indent", "true"); QueryResponse res = server.query(params); SolrDocumentList results = res.getResults(); Iterator i = results.iterator(); request.setAttribute("size", results.size()); String json = new Gson().toJson(res.getResults()); out.write(json); } catch (SolrServerException ex) { oout.write(ex.toString()); } } It's break on SolrServer server = new HttpSolrServer(Core.solrResourceBundle.getString("//http://172.16.0.1:8983/S earchCore")); without any exception just stop. Regards, Adel Khalifa -----Original Message----- From: Upayavira [mailto:u...@odoko.co.uk] Sent: Thursday, March 17, 2016 12:07 PM To: solr-user@lucene.apache.org Subject: Re: publish solr on galsshfish server This is not recommended. It may work, and if it does, a future update to Solr may stop it working, without warning. Solr is to be considered its own app, to be run using its own embedded servlet container, as this allows the project to manage its own configuration and to test thoroughly that it works with a specific container. Think of Solr much like you would any other app such as Mysql or Mongo. You just install the app, not making it depend upon any other 'container'. Upayavira On Thu, 17 Mar 2016, at 09:54 AM, Adel Mohamed Khalifa wrote: > Hello All, > > What is the requirement for installing solr on glassfish server, and > how can I do it? > > *Regards, **Adel Khalifa | *Developer* **| **Saudisoft-Egypt | ** Tel: *+2 023 303 2037 - *ext *112 | *M *+2 01149247744 | *Fax *+2 023 303 2036 | *Follow us on **Description: cid:image001.gif@01D11A1D.D81CE0C0** | **Description: cid:image002.gif@01D11A1D.D81CE0C0** | **Description: cid:image003.gif@01D11A1D.D81CE0C0****Description: cid:image004.jpg@01D11A1D.D81CE0C0*** > >