Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74AE16F97 for ; Tue, 14 Jun 2011 12:01:49 +0000 (UTC) Received: (qmail 6792 invoked by uid 500); 14 Jun 2011 12:01:47 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 6742 invoked by uid 500); 14 Jun 2011 12:01:47 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 6734 invoked by uid 99); 14 Jun 2011 12:01:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 12:01:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.176] (HELO mail-vx0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 12:01:41 +0000 Received: by vxa37 with SMTP id 37so7091805vxa.35 for ; Tue, 14 Jun 2011 05:01:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.116.42 with SMTP id jt10mr1492910vdb.36.1308052880505; Tue, 14 Jun 2011 05:01:20 -0700 (PDT) Received: by 10.52.162.5 with HTTP; Tue, 14 Jun 2011 05:01:20 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 Jun 2011 08:01:20 -0400 Message-ID: Subject: Re: External strings sort and case folding. From: Michael McCandless To: dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Jun 14, 2011 at 7:06 AM, Dawid Weiss wrote: >> And, if you create & index such Lucene documents, and then do a >> MatchAllDocsQuery sorting by your field, this is (unfortunately) not > > I was thinking about an optimized segment -- then the terms enum on a > given field should be sorted, right? Ahh, right. So actually it would work if you just enum'd the terms yourself, after indexing and optimizing. And this does amount to an external sort, I think! Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org