Re: Using SolrJ with multicore/shards

2009-06-02 Thread ahammad
Sorry for the additional message, the disclaimer was missing. Disclaimer: The code that was used was taken from the following site: http://e-mats.org/2008/04/using-solrj-a-short-guide-to-getting-started-with-solrj/ . ahammad wrote: > > Hello, > > I played around some more with it and I found

Re: Using SolrJ with multicore/shards

2009-06-02 Thread ahammad
Hello, I played around some more with it and I found out that I was pointing my constructor to an older class that doesn't have the MultiCore capability. This is what I did to set up the shards: query.setParam("shards", "localhost:8080/solr/core0/,localhost:8080/solr/core1/"); I do have a new

Re: Using SolrJ with multicore/shards

2009-06-02 Thread ahammad
I'm still not sure what you meant. I took a look at that class but I haven't got any idea on how to proceed. BTW I tried something like this query.setParam("shard", "http://localhost:8080/solr/core0/"; , "http://localhost:8080/solr/core1/";); But it doesn't seem to work for me. I tried it with

Re: Using SolrJ with multicore/shards

2009-06-02 Thread Otis Gospodnetic
You should be able to set any name=value URL parameter pair and send it to Solr using SolrJ. What's the name of that class... MapSolrParams, I believe. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: ahammad > To: solr-user@lucene.apach