Revision 7593
Added by Jing Tao about 11 years ago
SolrIndexIT.java | ||
---|---|---|
48 | 48 |
List<SolrIndex> list = controller.getSolrIndexes(); |
49 | 49 |
SolrIndex[] solrIndexesarray = list.toArray(new SolrIndex[list.size()]); |
50 | 50 |
SolrIndex index = solrIndexesarray[0]; |
51 |
SolrServer solrServer = SolrServerFactory.createSolrServer(); |
|
52 |
index.setSolrServer(solrServer); |
|
51 |
//SolrServer solrServer = SolrServerFactory.createSolrServer();
|
|
52 |
//index.setSolrServer(solrServer);
|
|
53 | 53 |
return index; |
54 | 54 |
} |
55 | 55 |
|
Also available in: Unified diff
Read the solr configuration file name and collection name from the property file.