Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 88719 invoked from network); 21 Feb 2005 15:34:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Feb 2005 15:34:22 -0000 Received: (qmail 25551 invoked by uid 500); 21 Feb 2005 15:34:17 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 25518 invoked by uid 500); 21 Feb 2005 15:34:16 -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 25504 invoked by uid 99); 21 Feb 2005 15:34:16 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of newreaders@gmail.com designates 64.233.184.202 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.202) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 21 Feb 2005 07:34:16 -0800 Received: by wproxy.gmail.com with SMTP id 71so1105418wri for ; Mon, 21 Feb 2005 07:34:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=r/vh6+iSlVQLKVfnkCRY29ikYgOEUu3VOJdl1tAwBvzbbacH50yaOCcl+ML/GMNUO2Wu9CJZi2+WaNdl2ozO+3Utxk5di0vsrb6CK37YjNnBBCYBSJIeGEMjVhG9nH7iAQeMH0g0ppcrSaCfxYI/XQJg/F4jzLm7Hmmv5lOsS8E= Received: by 10.54.37.44 with SMTP id k44mr111743wrk; Mon, 21 Feb 2005 07:34:14 -0800 (PST) Received: by 10.54.23.39 with HTTP; Mon, 21 Feb 2005 07:34:14 -0800 (PST) Message-ID: <5f4a64610502210734618d0003@mail.gmail.com> Date: Tue, 22 Feb 2005 02:34:14 +1100 From: Ben Reply-To: Ben To: Lucene Subject: Sorting isn't working for my date field Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Do I need to store and index the field I want to sort? Currently I am only indexing the field without storing nor tokenizing it. I have a date field indexing as yyyyMMdd and I have two documents with the same date. When I do my search with: searcher.search(query, new SortField("date", true)); searcher.search(query, new SortField("date", false)); they both return the same order. Any idea? Thanks. Ben --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org