Hi Arun, > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Arun Wagle > Sent: donderdag 16 oktober 2008 21:48 > To: [EMAIL PROTECTED]; [email protected] > Subject: [HippoCMS-dev] Issue with date sorting using DASL query > We are trying to make a DASL query to get the data sorted by > user defined date field. > > The sorting does not work. > > > > When I sort using the DAV properties like creationDate, > modificationDate, the sorting works perfectly fine. > > Date stored in the metadata file > > <property name="date" namespace="http://hippo.nl/cms/1.0" > value="20081014" > type="date" protected="false"> <snip /> > dasl-indexer.xml file > > <property namespace="http://hippo.nl/cms/1.0" name="date" > type="date" /> > > > > Let me know if you need more details. > > A quick reply is really appreciated.
yyyyMMdd is not a supported date format for our Lucene index. The following formats are supported for date: EEE, dd MMM yyyy HH:mm:ss zzz EEE MMM dd HH:mm:ss zzz yyyy EEEEEE, dd-MMM-yy HH:mm:ss zzz EEE MMMM d HH:mm:ss yyyy yyyy-MM-dd'T'HH:mm:ss'Z' If you want to continue using yyyyMMdd, don't index the field as date but as a normal string (i.e. remove the special indexer configuration for this field). Jasha Joachimsthal [EMAIL PROTECTED] - [EMAIL PROTECTED] www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-3329 +1 (707) 773-4646 ******************************************** Hippocms-dev: Hippo CMS development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
