Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 64479 invoked from network); 26 May 2006 15:47:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 May 2006 15:47:50 -0000 Received: (qmail 9176 invoked by uid 500); 26 May 2006 15:47:43 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 9150 invoked by uid 500); 26 May 2006 15:47:43 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 9139 invoked by uid 99); 26 May 2006 15:47:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 May 2006 08:47:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of richmondmike@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 May 2006 08:47:42 -0700 Received: by ug-out-1314.google.com with SMTP id u2so186141uge for ; Fri, 26 May 2006 08:47:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qa74+Y/NbZD6wTTbwwmHFzeMdoDpOoNPoFqHaLM/zkbO5ac1EgbUZ9Uf6I+CXhxNmCCRShm0x1/EW40vGWDIyfzmxRhm0hB8boLOplxAay152LL+wJvv9gcI0/22OHC0Udy8l76OcDPbrKLfh+nuU4vut4xvwAYDJMWSHTWU6VY= Received: by 10.67.108.27 with SMTP id k27mr59807ugm; Fri, 26 May 2006 08:46:34 -0700 (PDT) Received: by 10.67.95.1 with HTTP; Fri, 26 May 2006 08:46:34 -0700 (PDT) Message-ID: <931ca11b0605260846t2459313ch14e9a02f857158df@mail.gmail.com> Date: Fri, 26 May 2006 11:46:34 -0400 From: "Mike Richmond" To: java-user@lucene.apache.org Subject: Re: sorting issues In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm running into similar sort issues when I try to sort my results on a date field that was created using the DateTools class as follows: DateTools.dateToString(dateObj, DateTools.Resolution.SECOND); I am then storing this in a stored, untokenized field named "date". When I sort the results by date, I am not getting them in date order. Ex (dates converted back to a more readable format): 05/26/06 at 08:03:34 AM 05/25/06 at 01:36:57 PM 05/26/06 at 06:58:09 AM Do I need to have a tokenized date field to get the results that I am expec= ting? Thanks, Mike On 5/23/06, Van Nguyen wrote: > I was expecting it to be sorted alphabetically by a field.... > > I think I may have figured out my own question. I was tokenizing the > field I wanted to sort. Changed it so that it's not tokenizing that > field and I'm getting the results that I was expecting. > > Thanks, > > Van Nguyen > Wynne Systems, Inc. > > -----Original Message----- > From: karl wettin [mailto:kalle@snigel.net] > Sent: Tuesday, May 23, 2006 3:42 PM > To: java-user@lucene.apache.org > Subject: Re: sorting issues > > On Tue, 2006-05-23 at 15:42 -0700, Van Nguyen wrote: > > > > Does anyone have any sorting issues in lucene? When lucene is > > returning results from my query, I get results similar to this: > > > > E.D. BULLARD > > E.D. BULLARD > > MINE SAFETY APPL MSA > > NORTH SAFETY PRODUCT > > NORTH SAFETY PRODUCT > > MINE SAFETY APPL MSA > > MINE SAFETY APPL MSA > > NORTH SAFETY PRODUCT > > What did you expect, and why? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > > This communication and any documents, files, or previous electronic mail = messages attached to it constitute > an electronic communication within the scope of the Electronic Communicat= ion Privacy Act, 18 USCA 2510. > This communication may contain non-public, confidential, or legally privi= leged information intended for the > sole use of the designated recipient(s). The unlawful interception, use o= r disclosure of such information is > strictly prohibited under 18 USCA 2511 and any applicable laws. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org