You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Amit Nithian <an...@gmail.com> on 2009/02/13 08:46:39 UTC
SolrJ API and XMLResponseParser
I am using SolrJ from trunk and according to
http://wiki.apache.org/solr/Solrj you should be able to set the response
parser in the SolrServer interface layer; however, I am unable to do so and
I need the XML response support for querying and adding documents to a Solr
1.2 instance. Also, I have changed the XML response for a particular query
handler and hence may need to alter the response parser to accommodate these
changes.
I know that the API is experimental but has trunk's version of the SolrJ API
changed with respect to SolrJ wiki?
Thanks
Amit
Re: SolrJ API and XMLResponseParser
Posted by Noble Paul നോബിള് नोब्ळ् <no...@gmail.com>.
On Fri, Feb 13, 2009 at 9:18 PM, Amit Nithian <an...@gmail.com> wrote:
> Hi Noble,
> According to the wiki, the following should work:
> server.setParser(new XMLResponseParser());
I guess it may be a typo. pls referto the javadocs for CommonsHttpSolrServer
>
> However, I don't see that method. The only place I see that method even
> being declared is in the SolrRequest class but then wiring that up with the
> SolrServer and getting results wasn't overly obvious to me.
if a parser is set at the Request level ,that takes precedence.
>
> Thanks
> Amit
>
> On Fri, Feb 13, 2009 at 12:31 AM, Noble Paul നോബിള് नोब्ळ् <
> noble.paul@gmail.com> wrote:
>
>> On Fri, Feb 13, 2009 at 1:16 PM, Amit Nithian <an...@gmail.com> wrote:
>> > I am using SolrJ from trunk and according to
>> > http://wiki.apache.org/solr/Solrj you should be able to set the response
>> > parser in the SolrServer interface layer; however, I am unable to do so
>> and
>> > I need the XML response support for querying and adding documents to a
>> Solr
>> > 1.2 instance. Also, I have changed the XML response for a particular
>> query
>> > handler and hence may need to alter the response parser to accommodate
>> these
>> > changes.
>> setting a response parser should work , how do you know it does not work?
>> > I know that the API is experimental but has trunk's version of the SolrJ
>> API
>> > changed with respect to SolrJ wiki?
>> No. the trunk should still work w/ Solr 1.2
>> >
>> > Thanks
>> > Amit
>> >
>>
>>
>>
>> --
>> --Noble Paul
>>
>
--
--Noble Paul
Re: SolrJ API and XMLResponseParser
Posted by Amit Nithian <an...@gmail.com>.
Hi Noble,
According to the wiki, the following should work:
server.setParser(new XMLResponseParser());
However, I don't see that method. The only place I see that method even
being declared is in the SolrRequest class but then wiring that up with the
SolrServer and getting results wasn't overly obvious to me.
Thanks
Amit
On Fri, Feb 13, 2009 at 12:31 AM, Noble Paul നോബിള് नोब्ळ् <
noble.paul@gmail.com> wrote:
> On Fri, Feb 13, 2009 at 1:16 PM, Amit Nithian <an...@gmail.com> wrote:
> > I am using SolrJ from trunk and according to
> > http://wiki.apache.org/solr/Solrj you should be able to set the response
> > parser in the SolrServer interface layer; however, I am unable to do so
> and
> > I need the XML response support for querying and adding documents to a
> Solr
> > 1.2 instance. Also, I have changed the XML response for a particular
> query
> > handler and hence may need to alter the response parser to accommodate
> these
> > changes.
> setting a response parser should work , how do you know it does not work?
> > I know that the API is experimental but has trunk's version of the SolrJ
> API
> > changed with respect to SolrJ wiki?
> No. the trunk should still work w/ Solr 1.2
> >
> > Thanks
> > Amit
> >
>
>
>
> --
> --Noble Paul
>
Re: SolrJ API and XMLResponseParser
Posted by Noble Paul നോബിള് नोब्ळ् <no...@gmail.com>.
On Fri, Feb 13, 2009 at 1:16 PM, Amit Nithian <an...@gmail.com> wrote:
> I am using SolrJ from trunk and according to
> http://wiki.apache.org/solr/Solrj you should be able to set the response
> parser in the SolrServer interface layer; however, I am unable to do so and
> I need the XML response support for querying and adding documents to a Solr
> 1.2 instance. Also, I have changed the XML response for a particular query
> handler and hence may need to alter the response parser to accommodate these
> changes.
setting a response parser should work , how do you know it does not work?
> I know that the API is experimental but has trunk's version of the SolrJ API
> changed with respect to SolrJ wiki?
No. the trunk should still work w/ Solr 1.2
>
> Thanks
> Amit
>
--
--Noble Paul