You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2007/04/16 08:22:18 UTC
[Solr Wiki] Update of "EmbeddedSolr" by ryan
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 ryan:
http://wiki.apache.org/solr/EmbeddedSolr
The comment on the change is:
configure the instanceDir directly comment
------------------------------------------------------------------------------
private static SolrCore core;
public static void main(String[] args) throws IOException {
+
+ // Rather then require system properties or JNDI, you could set the instance directory manually.
+ //Config.setInstanceDir( "set/the/file/programmatically" );
+
core = SolrCore.getSolrCore();
System.out.println("-----\nBefore:");
search("embedded");