Check your "date" field type to make sure it really is "solr.DateField" or "solr.TrieDateField"

Then check whether you have a function query with an "ms" function that references a non-TrieDateField.

-- Jack Krupansky

-----Original Message----- From: hassancrowdc
Sent: Monday, April 15, 2013 10:54 AM
To: solr-user@lucene.apache.org
Subject: solr tdate field

Hi,

I have date field being indexed into solr. in my schema i have the following
code for it,

<field name="createdDate" type="date" indexed="true" stored="true"
required="true" />

but in java, i get the following error when i search using solr:

java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Date

Why is solr returning me String back where i have type=date in schema.xml?

Thanks.



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

Reply via email to