Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

wikipedia demo fixes

  • Loading branch information...
commit 3ac30ec1eefa9e27f72350e3abf044a1b69827cb 1 parent f37c29a
@tjake authored
View
2  scripts/post.sh
@@ -17,7 +17,7 @@
NAME=$1
FILE=$2
-URL=http://localhost:8983/solr/schema/$NAME
+URL=http://localhost:8983/solandra/schema/$NAME
curl $URL --data-binary @$FILE -H 'Content-type:text/xml; charset=utf-8'
View
3  test/lucandra/wikipedia/WikipediaIndexWorker.java
@@ -29,6 +29,7 @@
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;
+import org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer;
import org.apache.solr.common.SolrInputDocument;
public class WikipediaIndexWorker implements Callable<Integer> {
@@ -83,7 +84,7 @@ private CommonsHttpSolrServer getIndexWriter() throws MalformedURLException {
if(hosts.size() == 0)
throw new RuntimeException("no hosts defined");
- indexWriter = new CommonsHttpSolrServer("http://"+hosts.get(r.nextInt(hosts.size()))+":" + port + "/solr/wikassandra");
+ indexWriter = new StreamingUpdateSolrServer("http://"+hosts.get(r.nextInt(hosts.size()))+":" + port + "/solandra/wikassandra", 512, 64/hosts.size());
clientPool.set(indexWriter);
}
View
2  wikipedia-demo/run_importer.sh
@@ -1,3 +1,3 @@
#!/bin/bash
-java -ea -Xmx1G -Xms256M -cp $( echo solr-resources *.jar lib/*.jar | sed 's/ /:/g') lucandra.wikipedia.WikipediaImporter $*
+java -ea -Xmx1G -Xms256M -cp $( echo ../resources ../*.jar ../lib/*.jar | sed 's/ /:/g') lucandra.wikipedia.WikipediaImporter $*
Please sign in to comment.
Something went wrong with that request. Please try again.