On Fri, Jul 24, 2015, at 07:50 PM, Darin Amos wrote:
> Hello,
> 
> I have an application server that is running both the solr.war and a REST
> API war within the same JVM. Is it possible to query the SOLR instance
> natively (non-blocking) without connecting over HTTP? I could use
> EmbeddedSolrServer but I cannot create a second instance of my core.
> 
> If I can get a reference to my existing core instance and wrap it with
> new EmbeddedSolrServer(SolrCore), is this reasonable? However, I cannot
> see how to get a reference to an existing core in a supported way.

This is not a supported use-case. Solr is intended to be a stand-alone
application server that happens to be written in Java.

I believe, as of 5.3, there may not be a war file included in Solr, and
gradually, creating a war will get harder, or even become impossible.

If you wanted to run something inside the same VM, write your own
request handler, and make it a part of Solr itself.

See: http://wiki.apache.org/solr/WhyNoWar

Upayavira

Reply via email to