Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 80066 invoked from network); 26 Feb 2005 10:56:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Feb 2005 10:56:48 -0000 Received: (qmail 29675 invoked by uid 500); 26 Feb 2005 10:56:45 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 29266 invoked by uid 500); 26 Feb 2005 10:56:43 -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 29252 invoked by uid 99); 26 Feb 2005 10:56:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 26 Feb 2005 02:56:42 -0800 Received: by ehatchersolutions.com (Postfix, from userid 504) id 949ED13E2127; Sat, 26 Feb 2005 05:56:40 -0500 (EST) Received: from [192.168.1.100] (va-chrvlle-cad1-bdgrp1-4b-b-169.chvlva.adelphia.net [68.169.41.169]) by ehatchersolutions.com (Postfix) with ESMTP id 30FDC13E2126 for ; Sat, 26 Feb 2005 05:56:26 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <5f4a646105022520363b61431d@mail.gmail.com> References: <5f4a646105022520363b61431d@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Sorting date stored in milliseconds time Date: Sat, 26 Feb 2005 05:56:25 -0500 To: "Lucene Users List" X-Mailer: Apple Mail (2.619.2) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL autolearn=no version=3.0.1 X-Spam-Level: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Just an idea off the top of my head.... you could create a custom sort, or alternatively you could store the date as separate fields such as "year", "month", "day", "time", and provide multi-field sort. Erik On Feb 25, 2005, at 11:36 PM, Ben wrote: > Hi > > I store my date in milliseconds, how can I do a sort on it? SortField > has INT, FLOAT and STRING. Do I need to create a new sort class, to > sort the long value? > > Thanks > Ben > > --------------------------------------------------------------------- > 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