Re: SolrJ Response + JSON

2010-08-02 Thread MitchK
Hi, as I promised, I want to give a feedback for transforming SolrJ's output into JSON with the package from json.org (the package was the json.org's one): I need to make a small modification to the package, since they store the JSON-key-value-pairs in a HashMap, I changed this to a LinkedHa

Re: SolrJ Response + JSON

2010-07-29 Thread Mats Bolstad
nother application has finished. >>> >>> I can not do those computations on the Solr - side. >>> >>> So, I really have to translate SolrJ's output into JSON. >>> >>> Any experiences how to do so without writing your own JSON-writer? >>> >>> Thank you. >>> - Mitch >>> -- >>> View this message in context: >>> http://lucene.472066.n3.nabble.com/SolrJ-Response-JSON-tp1002024p1002024.html >>> Sent from the Solr - User mailing list archive at Nabble.com. >>> >>> >> >> > >

Re: SolrJ Response + JSON

2010-07-29 Thread Mitch Köhler
side. So, I really have to translate SolrJ's output into JSON. Any experiences how to do so without writing your own JSON-writer? Thank you. - Mitch -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-Response-JSON-tp1002024p1002024.html Sent from the Solr - Use

Re: SolrJ Response + JSON

2010-07-29 Thread Mats Bolstad
putations on the Solr - side. > > So, I really have to translate SolrJ's output into JSON. > > Any experiences how to do so without writing your own JSON-writer? > > Thank you. > - Mitch > -- > View this message in context: > http://lucene.472066.n3.nabble.com

Re: SolrJ Response + JSON

2010-07-28 Thread Ranveer
context: http://lucene.472066.n3.nabble.com/SolrJ-Response-JSON-tp1002024p1002024.html Sent from the Solr - User mailing list archive at Nabble.com. -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

Re: SolrJ Response + JSON

2010-07-28 Thread rajini maski
t; Any experiences how to do so without writing your own JSON-writer? >> >> Thank you. >> - Mitch >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/SolrJ-Response-JSON-tp1002024p1002024.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > >

Re: SolrJ Response + JSON

2010-07-28 Thread MitchK
Hi Chantal, thank you for the feedback. I did not see the wood for the trees! The SolrDocument's javadoc says the following: http://lucene.apache.org/solr/api/org/apache/solr/common/SolrDocument.html |*getFieldValue <../../../../org/apache/solr/common/SolrDocument.html#getFieldValue%28java.la

Re: SolrJ Response + JSON

2010-07-28 Thread Chantal Ackermann
Hi Mitch On Wed, 2010-07-28 at 16:38 +0200, MitchK wrote: > Thank you, Chantal. > > I have looked at this one: http://www.json.org/java/index.html > > This seems to be an easy-to-understand-implementation. > > However, I am wondering how to determine whether a SolrDocument's field > is multiVa

Re: SolrJ Response + JSON

2010-07-28 Thread MitchK
Thank you, Chantal. I have looked at this one: http://www.json.org/java/index.html This seems to be an easy-to-understand-implementation. However, I am wondering how to determine whether a SolrDocument's field is multiValued or not. The JSONResponseWriter of Solr looks at the schema-configurat

Re: SolrJ Response + JSON

2010-07-28 Thread Chantal Ackermann
You could use org.apache.solr.handler.JsonLoader. That one uses org.apache.noggit.JSONParser internally. I've used the JacksonParser with Spring. http://json.org/ lists parsers for different programming languages. Cheers, Chantal On Wed, 2010-07-28 at 15:08 +0200, MitchK wrote: > Hello , > > S

Re: SolrJ Response + JSON

2010-07-28 Thread MitchK
Thank you Markus, Mark. Seems to be a problem with Nabble, not with the mailing list. Sorry. I can create a JSON-response, when I query Solr directly. But I mean, that I query Solr through a SolrJ-client (CommonsHttpSolrServer). That means my queries look a litte bit like that: http://wiki.apa

Re: SolrJ Response + JSON

2010-07-28 Thread Markus Jelsma
Hi, I got a response to your e-mail in my box 30 minutes ago. Anyway, enable the JSONResponseWriter, if you haven't already, and query with wt=json. Can't get mucht easier. Cheers, On Wednesday 28 July 2010 15:08:26 MitchK wrote: > Hello , > > Second try to send a mail to the mailing list...

Re: SolrJ Response + JSON

2010-07-28 Thread Mark Allan
e SolrJ's output into JSON. Any experiences how to do so without writing your own JSON-writer? Thank you. - Mitch -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-Response-JSON-tp1002024p1002024.html Sent from the Solr - User mailing list archive at Nabble.co

SolrJ Response + JSON

2010-07-28 Thread MitchK
s response into JSON without writing your own JSON Writer? Thank you. - Mitch -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-Response-JSON-tp1002115p1002115.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: SolrJ Response + JSON

2010-07-28 Thread Mark Allan
472066.n3.nabble.com/SolrJ-Response-JSON-tp1002024p1002024.html Sent from the Solr - User mailing list archive at Nabble.com. -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

SolrJ Response + JSON

2010-07-28 Thread MitchK
thout writing your own JSON-writer? Thank you. - Mitch -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-Response-JSON-tp1002024p1002024.html Sent from the Solr - User mailing list archive at Nabble.com.