Revision 7549
Added by Jing Tao about 11 years ago
SolrIndex.java | ||
---|---|---|
49 | 49 |
import org.apache.solr.client.solrj.SolrServer; |
50 | 50 |
import org.apache.solr.client.solrj.SolrServerException; |
51 | 51 |
import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer; |
52 |
import org.apache.solr.client.solrj.impl.HttpSolrServer; |
|
52 |
//import org.apache.solr.client.solrj.impl.HttpSolrServer;
|
|
53 | 53 |
import org.apache.solr.client.solrj.response.UpdateResponse; |
54 | 54 |
import org.apache.solr.common.SolrInputDocument; |
55 | 55 |
import org.apache.solr.core.CoreContainer; |
... | ... | |
70 | 70 |
*/ |
71 | 71 |
public class SolrIndex { |
72 | 72 |
|
73 |
private static final String SOLRHOMEPATH = "/Users/tao/Downloads/apache-solr-3.6.2/example/solr";
|
|
73 |
private static final String SOLRHOMEPATH = "/Users/tao/Downloads/apache-solr-3.4.0/example/solr";
|
|
74 | 74 |
|
75 | 75 |
private static final String SOLRHOME = "solr.solr.home"; |
76 | 76 |
private static final String SOLRSERVERNAME = "metacat-core"; |
Also available in: Unified diff
Make EmbeddedServer work. It is for solr 3.4 since the d1_cn_index_processor depends on that version.