This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

wikipedia demo fixes

  • Loading branch information...
1 parent f37c29a commit 3ac30ec1eefa9e27f72350e3abf044a1b69827cb @tjake committed Feb 7, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −1 scripts/post.sh
  2. +2 −1 test/lucandra/wikipedia/WikipediaIndexWorker.java
  3. +1 −1 wikipedia-demo/run_importer.sh
View
@@ -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'
@@ -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);
}
@@ -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 $*

0 comments on commit 3ac30ec

Please sign in to comment.