Greetings,

I'm trying to create a faster index generator for testing purposes. Using
lucene has helped immensely to increase indexing speed. However, my schema
includes a TrieDateField. I do not know how to correctly index this field
type using Lucene's API's.

I've tried the following:
new DateField().toExternal(new Date()) //solrDAteField
DateTools.dateToString(new Date(), DateTools.Resolution.SECOND

In both cases I get the follwoing when I do a search

<str name="date">
ERROR:SCHEMA-INDEX-MISMATCH,stringValue=2010-01-26T00:54:26.584Z</str>

The string value is different depending on which method I use. Does anyone
know how to correctly index a TrieDateField using Lucene API's?

Thanks for the help,
Brad

Reply via email to