Look at org.apache.solr.response.BinaryResponseWriter. This serializes from a SolrQueryResponse. There is no direct XML to JavaBin serialization.

It uses org.apache.solr.common.util.JavaBinCodec.

This is the server side processing. For the client side, see the SolrJ package.


-- Jack Krupansky
-----Original Message----- From: Dario Rigolin
Sent: Friday, July 26, 2013 4:29 AM
To: solr-user@lucene.apache.org
Subject: Converti XML response into JavaBin encoding

I'm in the process to create a service gateway from a SQL database bur externally acting as a Solr Server. I have implemented the XML, JSON and PHPs Response format but using sharing I'm receiving requests for a "javabin" format. Looking into javadoc I have found a JavaBinCodec encoder receiving a list of java objects and preparing a Java serialized reply. My question is that inside Solr library an encoder from XML/JSON to JavaBin is allready available and in which package or class is available. I developed my gateway in Perl and I can embeded Javacode inside to call this java class if any exists. If not I need to implement my self and any help pointing me to a existing code inside solr it will be appreciated (Example where solr prepare the response to a query).

Thank you.

-----
Dario Rigolin
drigo...@gmail.com


Reply via email to