Grokbase Groups Lucene dev July 2011
FAQ

In order to allow Solrj tests to pass, I made the following change to SolrJettyTestBase.createJetty() - previously, this method was initializing a core with the default solr home: the first matching "solr/conf/.." dir in the classpath, and I changed it to use the passed-in solrHome dir:

public static JettySolrRunner createJetty(String solrHome, String configFile, String context) throws Exception {
// creates the data dir
- initCore(null, null);
+ initCore(null, null, solrHome);

ignoreException("maxWarmingSearchers");
All tests pass, but I wonder if this change maybe has unintended side effects, or if maybe it should have been passing solrHome to initCore() all along? Anyone know?

Steve

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedJul 22, '11 at 6:37p
activeJul 22, '11 at 6:37p
posts1
users1
websitelucene.apache.org

1 user in discussion

Steven A Rowe: 1 post

People

Translate

site design / logo © 2021 Grokbase