Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 88665 invoked from network); 22 Apr 2005 01:27:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Apr 2005 01:27:05 -0000 Received: (qmail 18188 invoked by uid 500); 22 Apr 2005 01:27:24 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 17284 invoked by uid 500); 22 Apr 2005 01:27:21 -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 Delivered-To: moderator for java-user@lucene.apache.org Received: (qmail 21051 invoked by uid 99); 21 Apr 2005 21:22:46 -0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_10_20,HTML_MESSAGE,RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jdlevine@gmail.com designates 64.233.184.201 as permitted sender) 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; b=FfhlXwYiA0xWC7b9N9bnZFr3GFaXv7MhIsl/px0fzgAXGjspN32JRXKLkUNngmbXBfTlYU7YMOicy7MVnmwgLQd9vTy94EuDNENS7GUXyvZqxSwP+4ujlWu+bO6TqfEDrutFpBb0yOVJtkDbcMz5H+KlJvlVB9AREz/B/U/crZM= Message-ID: <399bbc0e05042114225e3415f1@mail.gmail.com> Date: Thu, 21 Apr 2005 14:22:23 -0700 From: James Levine Reply-To: James Levine To: java-user@lucene.apache.org Subject: sorting on "dates" a little fuzzy... Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1084_26436520.1114118543087" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_1084_26436520.1114118543087 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I have an index of around 3 million records, and typical queries can result in result sets of between 1 and 400,000 results.=20 We have indexed "dateTime" fields in the form 20050415142, that is, to 10-minute precision. When I try to sort queries I get something back that is roughly sorted on index, but not quite. Stuff is out of order just a bit. The size of the result set does not seem to be related occurance of this problem. We've tried lucene 1.4-final and1.4.3. my code looks like this s =3D new Sort( new SortField[] { new SortField( "dateTime", SortField.STRI= NG,=20 true ), SortField.FIELD_SCORE } ); ... hits =3D searcher.search( qry, s ); Any help is appreciated, I'm so far baffled by this problem. Regards, James ------=_Part_1084_26436520.1114118543087--