Re: Runtime exception when adding documents using solrj

2009-04-02 Thread vivek sar
Hello Shalin, Looks like I was using old version of solrconfig.xml (from Solr 1.2). After I updated to the latest solrconfig.xml (from 1.4) it seems to be working fine. Another question I got is how would I search on multi-cores, 1) If I want to search for a word in two different cores? 2)

Runtime exception when adding documents using solrj

2009-04-01 Thread Radha C.
Hi All, I am trying to index documents by using solrj client. I have written a simple code below, { CommonsHttpSolrServer server = new CommonsHttpSolrServer(http://localhost:8080/solr/update;); SolrInputDocument doc1=new SolrInputDocument();

Re: Runtime exception when adding documents using solrj

2009-04-01 Thread Noble Paul നോബിള്‍ नोब्ळ्
which version of Solr are you using? On Wed, Apr 1, 2009 at 12:01 PM, Radha C. cra...@ceiindia.com wrote: Hi All, I am trying to index documents by using solrj client. I have written a simple code below, { CommonsHttpSolrServer server = new

RE: Runtime exception when adding documents using solrj

2009-04-01 Thread Radha C.
I am using Solr 1.3 version _ From: Noble Paul നോബിള്‍ नोब्ळ् [mailto:noble.p...@gmail.com] Sent: Wednesday, April 01, 2009 12:16 PM To: solr-user@lucene.apache.org; cra...@ceiindia.com Subject: Re: Runtime exception when adding documents using solrj which version of Solr are you

RE: Runtime exception when adding documents using solrj

2009-04-01 Thread Radha C.
Can anyone please tell me , what is the issue with the below java code.. -Original Message- From: Radha C. [mailto:cra...@ceiindia.com] Sent: Wednesday, April 01, 2009 12:28 PM To: solr-user@lucene.apache.org Subject: RE: Runtime exception when adding documents using solrj I am

Re: Runtime exception when adding documents using solrj

2009-04-01 Thread Noble Paul നോബിള്‍ नोब्ळ्
: Radha C. [mailto:cra...@ceiindia.com] Sent: Wednesday, April 01, 2009 12:28 PM To: solr-user@lucene.apache.org Subject: RE: Runtime exception when adding documents using solrj I am using Solr 1.3 version  _ From: Noble Paul നോബിള്‍ नोब्ळ् [mailto:noble.p...@gmail.com] Sent: Wednesday

RE: Runtime exception when adding documents using solrj

2009-04-01 Thread Radha C.
Subject: Re: Runtime exception when adding documents using solrj the url is wrong try this CommonsHttpSolrServer server = new CommonsHttpSolrServer(http://localhost:8080/solr/;); On Wed, Apr 1, 2009 at 2:04 PM, Radha C. cra...@ceiindia.com wrote: Can anyone please tell me , what is the issue

RE: Runtime exception when adding documents using solrj

2009-04-01 Thread Radha C.
: Runtime exception when adding documents using solrj Can u take a look at the Solr logs and see what is hapening? On Wed, Apr 1, 2009 at 3:19 PM, Radha C. cra...@ceiindia.com wrote: Thanks Paul, I changed the URL but I am getting another error - Bad request , Any help will be appriciated

Re: Runtime exception when adding documents using solrj

2009-04-01 Thread Noble Paul നോബിള്‍ नोब्ळ्
നോബിള്‍ नोब्ळ् [mailto:noble.p...@gmail.com] Sent: Wednesday, April 01, 2009 2:26 PM To: solr-user@lucene.apache.org; cra...@ceiindia.com Subject: Re: Runtime exception when adding documents using solrj the url is wrong try this CommonsHttpSolrServer server =   new CommonsHttpSolrServer(http

Re: Runtime exception when adding documents using solrj

2009-04-01 Thread vivek sar
: Wednesday, April 01, 2009 3:52 PM To: solr-user@lucene.apache.org; cra...@ceiindia.com Subject: Re: Runtime exception when adding documents using solrj Can u take a look at the Solr logs and see what is hapening? On Wed, Apr 1, 2009 at 3:19 PM, Radha C. cra...@ceiindia.com wrote: Thanks Paul, I

Re: Runtime exception when adding documents using solrj

2009-04-01 Thread Shalin Shekhar Mangar
On Thu, Apr 2, 2009 at 1:13 AM, vivek sar vivex...@gmail.com wrote: Hi,  I'm trying to add the list of POJO objects (using annotations) using solrj, but the server.addBeans(...) is throwing this exception, org.apache.solr.common.SolrException: Bad Request Bad Request request:

Re: Runtime exception when adding documents using solrj

2009-04-01 Thread vivek sar
Thanks Shalin. I added that in the solrconfig.xml, but now I get this exception, org.apache.solr.common.SolrException: Not Found Not Found request: http://localhost:8080/solr/core0/update?wt=javabinversion=2.2 I do have the core0 under the solr.home. The core0 directory also contains the conf

Re: Runtime exception when adding documents using solrj

2009-04-01 Thread Shalin Shekhar Mangar
On Thu, Apr 2, 2009 at 2:34 AM, vivek sar vivex...@gmail.com wrote: Thanks Shalin. I added that in the solrconfig.xml, but now I get this exception, org.apache.solr.common.SolrException: Not Found Not Found request: http://localhost:8080/solr/core0/update?wt=javabinversion=2.2 I do have