hey, one more thing to add when u query to server u need to add the
response type u need. have a look at this page.
http://lucidworks.lucidimagination.com/display/solr/Response+Writers
On Thu, Jun 28, 2012 at 6:14 PM, Jochen Just wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
> I want to display response in json/xmk as it comes from solr.
Why don't you use the JSON QueryResponseWriter from Solr directly?
http://wiki.apache.org/solr/SolJSON should give you all you need to
get started.
Jochen
- --
Jochen Just
use simple java api for url connection and print the stream u received...
On Thu, Jun 28, 2012 at 2:24 PM, Shanu Jha wrote:
> Hi,
>
> I am getting solr document after querying solr using solrJ. I think solrj
> parse the response to generate its own response onject. I want to display
> response i
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
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.
>>>
>>>
>>
>>
>
>
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
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
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.
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.
>
>
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
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
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
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
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
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...
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
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.
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.
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.
19 matches
Mail list logo