lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Jha <shanuu....@gmail.com>
Subject Re: DateField - Invalid JSON String Exception - converting Query Response to JSON Object
Date Tue, 07 Jan 2014 15:55:52 GMT
I am using it. But timestamp having ":" in between causes the issue. Please
help


On Tue, Jan 7, 2014 at 11:46 AM, Ahmet Arslan <iorixxx@yahoo.com> wrote:

> Hi Amit,
>
> If you want json response, Why don't you use wt=json?
>
> Ahmet
>
>
> On Tuesday, January 7, 2014 7:34 AM, Amit Jha <shanuu.jha@gmail.com>
> wrote:
> Hi,
>
>
> We have index where date field have default value as 'NOW'. We are using
> solrj to query solr and when we try to convert query
> response(response.getResponse) to JSON object in java. The JSON
> API(org.json) throws 'invalid json string' exception. API say so because
> date field value i.e. yyyy-mm-ddThh:mm:ssZ  is not surrounded by double
> inverted commas( " ). So It says required , or } character when API see the
> colon.
>
> Could you please help me to retrieve the date field value as string in JSON
> response. Or any pointers.
>
> Any help would be highly appreciable.
>
>
>
> On Tue, Jan 7, 2014 at 12:28 AM, Amit Jha <shanuu.jha@gmail.com> wrote:
>
> > Hi,
> >
> > "Wish You All a Very Happy New Year".....
> >
> > We have index where date field have default value as 'NOW'. We are using
> > solrj to query solr and when we try to convert query
> > response(response.getResponse) to JSON object in java. The JSON
> > API(org.json) throws 'invalid json string' exception. API say so because
> > date field value i.e. yyyy-mm-ddThh:mm:ssZ  is not surrounded by double
> > inverted commas( " ). So It says required , or } character when API see
> the
> > colon.
> >
> > Could you please help me to retrieve the date field value as string in
> > JSON response. Or any pointers.
> >
> > Any help would be highly appreciable.
> >
> >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message