Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 27923 invoked from network); 9 Feb 2010 18:13:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2010 18:13:07 -0000 Received: (qmail 28730 invoked by uid 500); 9 Feb 2010 18:13:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 28658 invoked by uid 500); 9 Feb 2010 18:13:05 -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 28647 invoked by uid 99); 9 Feb 2010 18:13:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 18:13:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [68.116.39.62] (HELO rectangular.com) (68.116.39.62) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 18:12:57 +0000 Received: from marvin by rectangular.com with local (Exim 4.63) (envelope-from ) id 1NeuZf-00040h-JP for java-user@lucene.apache.org; Tue, 09 Feb 2010 10:12:35 -0800 Date: Tue, 9 Feb 2010 10:12:35 -0800 To: java-user@lucene.apache.org Subject: Re: Flex & Docs/AndPositionsEnum Message-ID: <20100209181235.GA15349@rectangular.com> References: <4B714F5C.2040709@deri.org> <002701caa981$b5400ef0$1fc02cd0$@de> <4B71588D.3060001@deri.org> <002801caa988$7a5c5bc0$6f151340$@de> <9ac0c6aa1002090535s2757d07fj2e17bfc244aebf5b@mail.gmail.com> <4B716C5F.6020907@deri.org> <9ac0c6aa1002090804s19c3d6e6qc1a34bdaca5dd982@mail.gmail.com> <4B718EEB.3070605@deri.org> <9ac0c6aa1002090851v1183e96fybbcd61f1a277b00a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ac0c6aa1002090851v1183e96fybbcd61f1a277b00a@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Marvin Humphrey X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Feb 09, 2010 at 11:51:31AM -0500, Michael McCandless wrote: > You should (when possible/reasonable) instead use > ReaderUtil.gatherSubReaders, then iterate through those sub readers > asking each for its flex fields. > > But if this is only for testing purposes, and Multi*Enum is more > convenient (and, once attrs work correctly), then Multi*Enum is > perfectly fine. Mike, FWIW, I've removed the ability to iterate over posting data at anything other than the segment level from KS. There's still a priority-queue-based aggregator for iterating over all terms in a multi-segment index, but not for anything lower. Forcing pluggable index formats to support the extra level of indirection necessary for iterating postings from a high level both introduces inefficiency and constrains their development. Consider what would happen if we tried indexed terms within a flat positions space and returned an array of positions instead of one position at a time. The instant you return objects or aggregates rather than primitives, you force support for offsets down into the low-level decoder. It's not really necessary to iterate aggregated postings across multiple segments, so IMO it's best to shunt users like Renaud towards the segment level. Marvin Humphrey --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org