Return-Path: Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 4970 invoked from network); 9 Sep 2003 23:30:20 -0000 Received: from unknown (HELO mailshell.com) (209.157.66.232) by daedalus.apache.org with SMTP; 9 Sep 2003 23:30:20 -0000 Received: (qmail 6729 invoked from network); 9 Sep 2003 23:30:23 -0000 Received: from unknown (HELO lucene.com) (dcutting@grandcentral.com@12.210.200.74) by mail.mailshell.com with SMTP; 9 Sep 2003 23:30:23 -0000 Message-ID: <3F5E6288.5040301@lucene.com> Date: Tue, 09 Sep 2003 16:30:16 -0700 From: Doug Cutting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Developers List Subject: Re: unexpected behavior with reader.terms(term) not folowing contract References: <3F5D1162.2090206@jivesoftware.com> In-Reply-To: <3F5D1162.2090206@jivesoftware.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Bruce Ritchie wrote: > From the above debug logging you can see that enum.next() has returned > a TermEnum with a text of '10'. While this is logically greater than or > equal to the preceeding text according to String.compareTo(), I'm > uncertain as to where the '10' text is coming from. As an example, > document #86 returns in another search the following: Could this be the text from a term in a different field? From a quick glance, it doesn't look like you're checking that your enumeration stays within the field. Doug