Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 97004 invoked from network); 6 Jun 2007 23:49:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 23:49:21 -0000 Received: (qmail 6943 invoked by uid 500); 6 Jun 2007 23:49:18 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 6718 invoked by uid 500); 6 Jun 2007 23:49:18 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 6705 invoked by uid 99); 6 Jun 2007 23:49:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 16:49:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of DORONC@il.ibm.com designates 195.212.29.153 as permitted sender) Received: from [195.212.29.153] (HELO mtagate4.de.ibm.com) (195.212.29.153) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 16:49:13 -0700 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id l56NmqLu147802 for ; Wed, 6 Jun 2007 23:48:52 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l56NmqWP3854542 for ; Thu, 7 Jun 2007 01:48:52 +0200 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l56NmpHJ023288 for ; Thu, 7 Jun 2007 01:48:51 +0200 Received: from d12mc102.megacenter.de.ibm.com (d12mc102.megacenter.de.ibm.com [9.149.167.114]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l56NmpOR023282 for ; Thu, 7 Jun 2007 01:48:51 +0200 In-Reply-To: Subject: Re: scorer.skipTo() contr To: java-dev@lucene.apache.org X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: From: Doron Cohen Date: Wed, 6 Jun 2007 16:46:54 -0700 X-MIMETrack: Serialize by Router on D12MC102/12/M/IBM(Release 7.0.2HF71 | November 3, 2006) at 07/06/2007 02:48:51 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Chris Hostetter wrote: > skipTo semantics have always made my head hurt, but it may be that the > contract is expressed too simplisticly ... i believe the expectation is > that while skipTo should always "skip to the first match beyond the > current whose document number is greater than or equal to a > given target." > there is a unwritten expectation that the "target" will always be greater > then the current s.doc(). > > I may be wrong about that ... i am afterall speculating about > an unwritten > assumption. > > The "behaves as if written" clause of the skipTo docs however make it > clear that anytime skipTo is called, the document should be advanced at > least one match no matter what the input is .. and your test seems to > indicate this is also not the case. Ok, I'll take it to JIRA then, so we can discuss if/how to fix this. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org