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 Marc Sturlese <ma...@gmail.com> on 2009/01/16 18:26:35 UTC

about the xml output format

Hey there,
I would like to know if there is any way to customize the output xml that
contains the response. I have been checking the source and looks for me that
should be something close to XMLWriter.java and XMLResponseWriter.java but
not sure about that... Is there any way to handle a pluggin to do that?

Thanks in advance 
-- 
View this message in context: http://www.nabble.com/about-the-xml-output-format-tp21504381p21504381.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: about the xml output format

Posted by Marc Sturlese <ma...@gmail.com>.
Yeah, I saw that... I am wandering if php serialized response use UTF-8
encoding by default...
Thanks

Bill Au wrote:
> 
> Solr does have a PHPResponseWriter:
> 
> http://wiki.apache.org/solr/SolPHP?highlight=(CategoryQueryResponseWriter)|((CategoryQueryResponseWriter))
> 
> http://lucene.apache.org/solr/api/org/apache/solr/request/PHPResponseWriter.html
> 
> Bill
> 
> On Fri, Jan 16, 2009 at 1:09 PM, Marc Sturlese
> <ma...@gmail.com>wrote:
> 
>>
>> Thanks, I have to study it but I think php serialized format will be the
>> best
>> for my case...
>>
>> Erik Hatcher wrote:
>> >
>> >
>> > On Jan 16, 2009, at 12:26 PM, Marc Sturlese wrote:
>> >> I would like to know if there is any way to customize the output xml
>> >> that
>> >> contains the response. I have been checking the source and looks for
>> >> me that
>> >> should be something close to XMLWriter.java and
>> >> XMLResponseWriter.java but
>> >> not sure about that... Is there any way to handle a pluggin to do
>> >> that?
>> >
>> > There's an XSL option that you can use without writing any code:
>> >
>> >     <http://wiki.apache.org/solr/XsltResponseWriter>
>> >
>> > But beyond that, you can write your own QueryResponseWriter
>> > implementation and plug it into solrconfig.xml for
>> > &wt=my_custom_writer.  See Solr's example solrconfig.xml for details
>> > on that.
>> >
>> >       Erik
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/about-the-xml-output-format-tp21504381p21505146.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/about-the-xml-output-format-tp21504381p21509406.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: about the xml output format

Posted by Bill Au <bi...@gmail.com>.
Solr does have a PHPResponseWriter:

http://wiki.apache.org/solr/SolPHP?highlight=(CategoryQueryResponseWriter)|((CategoryQueryResponseWriter))

http://lucene.apache.org/solr/api/org/apache/solr/request/PHPResponseWriter.html

Bill

On Fri, Jan 16, 2009 at 1:09 PM, Marc Sturlese <ma...@gmail.com>wrote:

>
> Thanks, I have to study it but I think php serialized format will be the
> best
> for my case...
>
> Erik Hatcher wrote:
> >
> >
> > On Jan 16, 2009, at 12:26 PM, Marc Sturlese wrote:
> >> I would like to know if there is any way to customize the output xml
> >> that
> >> contains the response. I have been checking the source and looks for
> >> me that
> >> should be something close to XMLWriter.java and
> >> XMLResponseWriter.java but
> >> not sure about that... Is there any way to handle a pluggin to do
> >> that?
> >
> > There's an XSL option that you can use without writing any code:
> >
> >     <http://wiki.apache.org/solr/XsltResponseWriter>
> >
> > But beyond that, you can write your own QueryResponseWriter
> > implementation and plug it into solrconfig.xml for
> > &wt=my_custom_writer.  See Solr's example solrconfig.xml for details
> > on that.
> >
> >       Erik
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/about-the-xml-output-format-tp21504381p21505146.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Re: about the xml output format

Posted by Marc Sturlese <ma...@gmail.com>.
Thanks, I have to study it but I think php serialized format will be the best
for my case...

Erik Hatcher wrote:
> 
> 
> On Jan 16, 2009, at 12:26 PM, Marc Sturlese wrote:
>> I would like to know if there is any way to customize the output xml  
>> that
>> contains the response. I have been checking the source and looks for  
>> me that
>> should be something close to XMLWriter.java and  
>> XMLResponseWriter.java but
>> not sure about that... Is there any way to handle a pluggin to do  
>> that?
> 
> There's an XSL option that you can use without writing any code:
> 
>     <http://wiki.apache.org/solr/XsltResponseWriter>
> 
> But beyond that, you can write your own QueryResponseWriter  
> implementation and plug it into solrconfig.xml for  
> &wt=my_custom_writer.  See Solr's example solrconfig.xml for details  
> on that.
> 
> 	Erik
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/about-the-xml-output-format-tp21504381p21505146.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: about the xml output format

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Jan 16, 2009, at 12:26 PM, Marc Sturlese wrote:
> I would like to know if there is any way to customize the output xml  
> that
> contains the response. I have been checking the source and looks for  
> me that
> should be something close to XMLWriter.java and  
> XMLResponseWriter.java but
> not sure about that... Is there any way to handle a pluggin to do  
> that?

There's an XSL option that you can use without writing any code:

    <http://wiki.apache.org/solr/XsltResponseWriter>

But beyond that, you can write your own QueryResponseWriter  
implementation and plug it into solrconfig.xml for  
&wt=my_custom_writer.  See Solr's example solrconfig.xml for details  
on that.

	Erik