Revision 7549
Added by Jing Tao over 11 years ago
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/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"; |
metacat-index/pom.xml | ||
---|---|---|
42 | 42 |
<type>jar</type> |
43 | 43 |
</dependency> |
44 | 44 |
<dependency> |
45 |
<groupId>org.apache.solr</groupId> |
|
46 |
<artifactId>solr-solrj</artifactId>
|
|
47 |
<version>3.6.2</version>
|
|
48 |
</dependency> |
|
49 |
<dependency> |
|
50 |
<groupId>org.apache.solr</groupId> |
|
51 |
<artifactId>solr-core</artifactId>
|
|
52 |
<version>3.6.2</version>
|
|
53 |
</dependency> |
|
45 |
<groupId>org.apache.solr</groupId>
|
|
46 |
<artifactId>solr-core</artifactId>
|
|
47 |
<version>3.4.0</version>
|
|
48 |
</dependency>
|
|
49 |
<dependency>
|
|
50 |
<groupId>org.apache.solr</groupId>
|
|
51 |
<artifactId>solr-test-framework</artifactId>
|
|
52 |
<version>3.4.0</version>
|
|
53 |
</dependency>
|
|
54 | 54 |
</dependencies> |
55 | 55 |
</project> |
Also available in: Unified diff
Make EmbeddedServer work. It is for solr 3.4 since the d1_cn_index_processor depends on that version.