lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "Solrj" by ShalinMangar
Date Thu, 31 Jul 2008 19:26:13 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by ShalinMangar:
http://wiki.apache.org/solr/Solrj

The comment on the change is:
EmbeddedSolrServer with MultiCores

------------------------------------------------------------------------------
    ...
  
  }}} 
+ 
+ If you want to use MultiCore features, then you should use this:
+ {{{
+     File home = new File( getSolrHome() );
+     File f = new File( home, "multicore.xml" );
+     multicore.load( getSolrHome(), f );
+ 
+     EmbeddedSolrServer server = new EmbeddedSolrServer( multicore, "core name as defined
in multicore.xml" );
+     ...
+ }}}
  
  If you need to use solr in an embedded application, this is the recommended approach. It
allows you to work with the same interface whether or not you have access to HTTP.
  

Mime
View raw message