Re: how to extend JavaBinCodec and make it available in solrj api

2015-08-17 Thread Dmitry Kan
thanks, Shalin! We have survived by passing our custom structure string in Json. Still to be tested for performance. On Sat, Aug 8, 2015 at 5:22 PM, Shalin Shekhar Mangar shalinman...@gmail.com wrote: Or use the XsltResponseWriter :) On Sat, Aug 8, 2015 at 7:51 PM, Shalin Shekhar Mangar

Re: how to extend JavaBinCodec and make it available in solrj api

2015-08-08 Thread Dmitry Kan
Shalin, Thanks, can I also introduce custom entity tags like in my example with the highlighter output? Dmitry On Fri, Aug 7, 2015 at 5:10 PM, Shalin Shekhar Mangar shalinman...@gmail.com wrote: The thing is that you are trying to introduce custom xml tags which require changing the

Re: how to extend JavaBinCodec and make it available in solrj api

2015-08-08 Thread Shalin Shekhar Mangar
No, I'm afraid you will have to extend the XmlResponseWriter in that case. On Sat, Aug 8, 2015 at 2:02 PM, Dmitry Kan solrexp...@gmail.com wrote: Shalin, Thanks, can I also introduce custom entity tags like in my example with the highlighter output? Dmitry On Fri, Aug 7, 2015 at 5:10 PM,

Re: how to extend JavaBinCodec and make it available in solrj api

2015-08-08 Thread Shalin Shekhar Mangar
Or use the XsltResponseWriter :) On Sat, Aug 8, 2015 at 7:51 PM, Shalin Shekhar Mangar shalinman...@gmail.com wrote: No, I'm afraid you will have to extend the XmlResponseWriter in that case. On Sat, Aug 8, 2015 at 2:02 PM, Dmitry Kan solrexp...@gmail.com wrote: Shalin, Thanks, can I also

Re: how to extend JavaBinCodec and make it available in solrj api

2015-08-07 Thread Shalin Shekhar Mangar
The thing is that you are trying to introduce custom xml tags which require changing the response writers. Instead, if you just used nested maps/lists or SimpleOrderedMap/NamedList then every response writer should be able to just directly write the output. Nesting is not a problem. On Fri, Aug

Re: how to extend JavaBinCodec and make it available in solrj api

2015-08-07 Thread Dmitry Kan
Shawn: thanks, we found an intermediate solution by serializing our data structure using string representation, perhaps less optimal than using binary format directly. In the original router with JavaBinCodec we found, that BinaryResponseWriter should also be extended. But the following method

Re: how to extend JavaBinCodec and make it available in solrj api

2015-08-06 Thread Shalin Shekhar Mangar
What do you mean by a custom format? As long as your custom component is writing primitives or NamedList/SimpleOrderedMap or collections such as List/Map, any response writer should be able to handle them. On Wed, Aug 5, 2015 at 5:08 PM, Dmitry Kan solrexp...@gmail.com wrote: Hello, Solr:

how to extend JavaBinCodec and make it available in solrj api

2015-08-05 Thread Dmitry Kan
Hello, Solr: 5.2.1 class: org.apache.solr.common.util.JavaBinCodec I'm working on a custom data structure for the highlighter. The data structure is ready in JSON and XML formats. I need also JavaBin format. The data structure is already made serializable by extending the WritableValue class

Re: how to extend JavaBinCodec and make it available in solrj api

2015-08-05 Thread Shawn Heisey
On 8/5/2015 5:38 AM, Dmitry Kan wrote: Solr: 5.2.1 class: org.apache.solr.common.util.JavaBinCodec I'm working on a custom data structure for the highlighter. The data structure is ready in JSON and XML formats. I need also JavaBin format. The data structure is already made serializable by