Re: Initialising of CommonsHttpSolrServer in Spring framwork

2009-05-15 Thread Aleksander M. Stensby
Out of the box, the simplest way to configure CommonsHttpSolrServer through a spring application context is to simply define the bean for the server and inject it into whatever class you have that will use it, like Avlesh shared below. class="org.apache.solr.client.solrj.impl.CommonsHttpSolr

Re: Initialising of CommonsHttpSolrServer in Spring framwork

2009-05-08 Thread Avlesh Singh
I am giving you a detailed sample of my spring usage. http://localhost/solr/core1"/> http://localhost/solr/core2"/> Hope this helps.

RE: Initialising of CommonsHttpSolrServer in Spring framwork

2009-05-08 Thread sachin78
Ranjeeth, Di you figured aout how to do this.If yes, can you share with me how you did it? Example bean definition in xml will be helpful. --Sachin Funtick wrote: > > Use constructor and pass URL parameter. Nothing SPRING related... > > Create a Spring bean with attributes 'MySolr', 'My

Re: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Ranjeet
M Subject: Re: Initialising of CommonsHttpSolrServer in Spring framwork Looks to me like you have a conflict with the version of HttpClient in that exception, likely not using the same version that SolrJ requires. Erik On Aug 4, 2008, at 12:07 PM, Ranjeet wrote: Hi Tomislav, I have user the sam

Re: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Erik Hatcher
not working , exception is attached in this mail. pls suggest me what to do further. Thanks & Regards, Ranjeet - Original Message - From: "Tomislav Poljak" <[EMAIL PROTECTED] > To: Sent: Monday, August 04, 2008 4:31 PM Subject: Re: Initialising of CommonsHttp

Re: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Ranjeet
; To: Sent: Monday, August 04, 2008 4:31 PM Subject: Re: Initialising of CommonsHttpSolrServer in Spring framwork Hi Ranjeet, try this in your Spring config: http://solr_url:8080/ and inject it to you service like this: and you have to have a setter in SomeService

RE: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Fuad Efendi
Use constructor and pass URL parameter. Nothing SPRING related... Create a Spring bean with attributes 'MySolr', 'MySolrUrl', and 'init' method... 'init' will create instance of CommonsHttpSolrServer. Configure Spring... > I am using Solr 1.3 and Solrj as a Java Client. I am > Integarating So

Re: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Tomislav Poljak
Hi Ranjeet, try this in your Spring config: http://solr_url:8080/ and inject it to you service like this: and you have to have a setter in SomeService for the prop. server (solrServer), off course. Hope this helps, Tomislav 2008/8/4 Ranjeet <[EMAIL PROTECTED]>