Pulkit Singhal wrote:
Using EmbeddedSolrServer is a client side way of communicating with
Solr via the file system. Solr has to still be up and running before
that. My question is more along the lines of how to put the server
jars that perform the core functionality and bundle them to start up
within a war which is also the application war for the program that
will communicate as the client with the Solr server.
I could be way wrong, but my interpretation is that EmbeddedSolrServer
provides a way to embed Solr into an application without requiring that
anything else is running.
http://wiki.apache.org/solr/Solrj#EmbeddedSolrServer
If you are looking for a method of your application doing SolrJ calls to
Solr, without having to install a separate Solr instance,
EmbeddedSolrServer would meet your needs. You'd have to use a few other
functions to load the core and register it, but it's doable without
having anything else running.