You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by hassancrowdc <ha...@gmail.com> on 2013/02/11 03:52:32 UTC

solr j response

Hi,
Can someone explain what is the response of solrj. After i am done, what
will be the format of the result? For example, if normal response is like
this by doing query http://localhost/solr/core/q=*:*&wtjson:
 {response
 {numfound:# , docs{
  [
   {
    id="#"
    createdDate="#"
   }
   {
    id="#"
    createdDate="#"
   }
  ]
  }
  }
and i want to format createdDate. will the result of the solrj make
createdDate a java object so that i can format it the way i want to?

thanks



--
View this message in context: http://lucene.472066.n3.nabble.com/solr-j-response-tp4039606.html
Sent from the Solr - User mailing list archive at Nabble.com.

RE: solr j response

Posted by Michael Ryan <mr...@moreover.com>.
Assuming that createdDate is a DateField in your schema.xml, the object returned by SolrJ will be a Date object (though you will need to cast it to a Date).

-Michael