Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 69165 invoked from network); 22 Apr 2009 13:21:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 13:21:00 -0000 Received: (qmail 68657 invoked by uid 500); 22 Apr 2009 13:20:58 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 68579 invoked by uid 500); 22 Apr 2009 13:20:58 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 68569 invoked by uid 99); 22 Apr 2009 13:20:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 13:20:58 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [67.108.223.150] (HELO tenacious.eliyon.com) (67.108.223.150) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 13:20:50 +0000 Received: from tenacious.eliyon.com ([10.31.248.150]) by tenacious.eliyon.com ([10.31.248.150]) with mapi; Wed, 22 Apr 2009 09:20:27 -0400 From: Ensdorf Ken To: "'solr-user@lucene.apache.org'" Date: Wed, 22 Apr 2009 09:20:26 -0400 Subject: RE: Sorting dates with reduced precision Thread-Topic: Sorting dates with reduced precision Thread-Index: AcnDTE8XQ0qDt4rFQvG0kcfcBxsl6AAABANA Message-ID: <15503D4FF4C716448506E0565354452706BBAB7DD7@tenacious.eliyon.com> References: <49EF11E3.1060402@nu.no> <1240405070.6710.49.camel@zelda.buyways.nl> <49EF1816.2090002@nu.no> In-Reply-To: <49EF1816.2090002@nu.no> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > Yes, but dates are fairly spesific, say 06:45 Nov. 2 , 2009. What if I > want to say "Sort so that withing entries for Nov. 2 , you sort by > relevance" for example? > Append "/DAY" to the date value you index, for example "1995-12-31T23:59:59Z/DAY" will yield "1995-12-31" So that all documents with the same date will then be sorted by relevance o= r whatever you specify as the next criteria in the "sort" parameter.