Differences between revisions 1 and 2
Revision 1 as of 2009-03-12 14:04:47
Size: 1010
Editor: adsl-074-229-189-244
Comment:
Revision 2 as of 2009-03-12 14:08:12
Size: 1100
Editor: adsl-074-229-189-244
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Solr expects dates to be in UTC when indexing (except [wiki:ExtractingRequestHandler Solr Cell], which has some leeway on transforming dates from various formats). Specifically, from the Example schmea.xml, the comment says: Solr expects dates to be in UTC when indexing (except [wiki:ExtractingRequestHandler Solr Cell] and the DataImportHandler, which have some leeway on transforming dates from various formats because they are pulling data and do not have the same control.) Specifically, from the Example schmea.xml, the comment says:

Solr expects dates to be in UTC when indexing (except [wiki:ExtractingRequestHandler Solr Cell] and the DataImportHandler, which have some leeway on transforming dates from various formats because they are pulling data and do not have the same control.) Specifically, from the Example schmea.xml, the comment says:

The format for this date field is of the form 1995-12-31T23:59:59Z, and is a more restricted form of the canonical representation of dateTime http://www.w3.org/TR/xmlschema-2/#dateTime The trailing "Z" designates UTC time and is mandatory. Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z All other components are mandatory.

Expressions can also be used to denote calculations that should be performed relative to "NOW" to determine the value, ie...

  • NOW/HOUR
    • .. Round to the start of the current hour
    NOW-1DAY
    • .. Exactly 1 day prior to now
    NOW/DAY+6MONTHS+3DAYS
    • .. 6 months and 3 days in the future from the start of
      • the current day

    Consult the DateField javadocs for more information.

IndexingDates (last edited 2009-09-20 22:05:09 by localhost)