Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 27628 invoked from network); 27 Apr 2004 12:31:12 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Apr 2004 12:31:12 -0000 Received: (qmail 44244 invoked by uid 500); 27 Apr 2004 12:31:04 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 44171 invoked by uid 500); 27 Apr 2004 12:31:03 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 44146 invoked from network); 27 Apr 2004 12:31:03 -0000 Received: from unknown (HELO c007.snv.cp.net) (209.228.33.228) by daedalus.apache.org with SMTP; 27 Apr 2004 12:31:03 -0000 Received: (cpmta 19654 invoked from network); 27 Apr 2004 05:31:03 -0700 Received: from 213.132.40.2 (HELO naderit) by smtp.bayt.net (209.228.33.228) with SMTP; 27 Apr 2004 05:31:03 -0700 X-Sent: 27 Apr 2004 12:31:03 GMT Reply-To: From: "Nader S. Henein" To: "'Lucene Users List'" Subject: RE: sorting by date (XML) Date: Tue, 27 Apr 2004 16:30:51 +0400 Organization: Bayt.com Message-ID: <001d01c42c53$7f0b2100$1801a8c0@naderit> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <408E4979.5080504@wyona.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Here's my two cents on this: Both ways you will need to combine the date in one field, but if you use = a millisecond representation you will not be able to use the FLOAT sort = type and you'll have use STRING sort (Slower) because the millisecond representation is longer than FLOAT allows, so you have three options: 1) Use YYYYMMDD and sort by FLOAT type 2) Use the millisecond representation and sort by STRING type 3) If the date you're entering here is the date of indexing then you can just sort by DOC type (which is the DOC ID) and save yourself the pain Hope this helps. Nader Henein -----Original Message----- From: Michael Wechner [mailto:michael.wechner@wyona.com]=20 Sent: Tuesday, April 27, 2004 3:52 PM To: Lucene Users List Subject: sorting by date (XML) my XML files contain something like 20040427... and I would like to sort by this date. So I guess I need to modify the Documentparser and generate something = like a millisecond field and then sort by this, correct? Has anyone done something like this yet? Thanks Michi --=20 Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://cocoon.apache.org/lenya/ michael.wechner@wyona.com michi@apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org