Hi Eric, >The guys who really know will be able to provide you much better >feedback if you include: >your field definitions
I hope, the following fields are enough. <fieldType name="date" class="solr.DateField" sortMissingLast="true" omitNorms="true" /> <fields> <field name="id" type="string" indexed="true" stored="true" required="true" /> <field name="date" type="date" indexed="true" stored="false" required="true" /> <field name="headline" type="text" indexed="true" stored="false" required="true" /> <!-- ... --> </fields> >probably your locale settings. The standard locale is en_US UTF8 and java doesn't seem to use another locale. Solr is running on a based CentOs server. Let me know if you need other settings, too. I don't know what also might be interesting... >And have you looked with Luke at your index to see what >the data actually looks like for that field in that record? Is it >possible that the date is getting interpreted as month >30, day 4, 2008? (How that would make this date appear >earlier than 2008 I have no idea, but stranger things have >happened <G>) The problem is that the date field isn't stored due to storage reasons (the index shouldn't get too big). We ony need the id and can rebuilt the found record later. Or is there a possibility to check how the date is saved. You thoughts may be correct, we also thought about this but couldn't find a solution to "look in an unstored field". By the way. Does Solr make a difference between "20080915T16:28:00Z" and "2008-09-15T16:28:00Z"? I saw and tried both spellings and no error occurred. Best regard, Christian >On Mon, Sep 15, 2008 at 8:07 AM, Kolodziej Christian < >[EMAIL PROTECTED]> wrote: > >> Hello everybody, >> >> We have big problem searching out solr index and filtering for the >date. >> Let me give you an example: there is a record with date 30.04.2008, >> 15:32:00. My query contains "+date:[20080101T12:00:00Z TO >> 20080915T13:59:00Z]" but the record is not found. But when I search >> "+date:[20071231T12:00:00Z TO 20080915T13:59:00Z]" the record is >found. >> >> Does anyone had similar problems? Or does anyone have an idea was is >going >> wrong? Or do you need more detailed information? >> >> Best regards, >> Christian >>