Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA7C6D73E for ; Wed, 22 Aug 2012 14:28:20 +0000 (UTC) Received: (qmail 6123 invoked by uid 500); 22 Aug 2012 14:28:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 6059 invoked by uid 500); 22 Aug 2012 14:28:18 -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 Received: (qmail 6051 invoked by uid 99); 22 Aug 2012 14:28:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 14:28:18 +0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 14:28:11 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T4BuQ-0000Wg-5h for java-user@lucene.apache.org; Wed, 22 Aug 2012 07:27:50 -0700 Date: Wed, 22 Aug 2012 07:27:50 -0700 (PDT) From: "Zeynep P." To: java-user@lucene.apache.org Message-ID: <1345645670102-4002656.post@n3.nabble.com> In-Reply-To: <1344952381564-4001160.post@n3.nabble.com> References: <1344952381564-4001160.post@n3.nabble.com> Subject: Re: pruning package- question about termpositions && skipTo MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi to all, I found the problem and the solution. In PruningReader super.getSequentialSubReaders(); is used. After 28118 super.next() is false because it is a subreader for a segment and indexreader.maxDoc() is equal to 28118 for that segment. In pruneAllPositions, instead of comparing termpostions.doc to docid, I compared in.document(termPositions.doc()).getField("docid").stringValue() to docid. It happened because of my custom initPositionsTerm method. (public void initPositionsTerm(TermPositions tp, Term t, *ScoreDoc[] sdoc*) ). There is no problem with other pruning policies. DocID ****** termPositions.doc() 22477 ******** 22477 26708 ******** 26708 42813 ******** 14093 47086 ******** 18366 49740 ******** 21020 68570 ******** 11760 76995 ******** 20185 106424 ******** 21524 116472 ******** 502 123472 ******** 1992 Best Regards -- View this message in context: http://lucene.472066.n3.nabble.com/pruning-package-question-about-termpositions-skipTo-tp4001160p4002656.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org