On 3/20/2016 5:46 AM, Adel Mohamed Khalifa wrote:
> Thanks Shawn, 
>
> This " 
> Core.solrResourceBundle.getString("//http://172.16.0.1:8983/SearchCore";)" 
> return the solr search core (( http://server:port/core))

Generally speaking, Solr lives on the "/solr" URL context, so the most
of the time the correct format of a Solr core URL is this:

http://server:port/solr/core

The HttpSolrServer constructor will not throw an exception with an
invalid but correctly formatted URL, though.  The newest versions of
Solr won't even throw an exception if you send complete gibberish for
the URL.  Older versions would throw a MalformedURLException.

As I have said elsewhere on this problem, the constructor does *not*
contact the server.  This only happens when you send a request, and one
of the ways to send a request is with the SolrServer#query method.

The Solr *server* probably won't run on glassfish, and Solr 5.x has no
official support for third-party containers at all.

https://issues.apache.org/jira/browse/SOLR-5109
https://wiki.apache.org/solr/WhyNoWar

SolrJ programs will probably be fine on glassfish, though.
 
Thanks,
Shawn

Reply via email to