Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 95933 invoked from network); 5 Apr 2006 14:28:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 14:28:40 -0000 Received: (qmail 85295 invoked by uid 500); 5 Apr 2006 14:28:33 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 85252 invoked by uid 500); 5 Apr 2006 14:28:33 -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 85233 invoked by uid 99); 5 Apr 2006 14:28:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 07:28:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of yseeley@gmail.com designates 64.233.162.197 as permitted sender) Received: from [64.233.162.197] (HELO zproxy.gmail.com) (64.233.162.197) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 07:28:32 -0700 Received: by zproxy.gmail.com with SMTP id 16so602851nzp for ; Wed, 05 Apr 2006 07:28:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nEyEsbXn2TozMCJAYDInND92jDZERv2DFgqSXSHvsxlcmcPr0hsE8nZY8rnG0OuwS8zzx7lDiLg13cKAzQRUAm+uQt8hUntfusTkNsYP1lVryg3gXrkdKYDnqd/H8lUXLmXMYxK45FXVCSlA9xFjuvYdKtQh88qQWHe6i6x62Ug= Received: by 10.35.101.9 with SMTP id d9mr526520pym; Wed, 05 Apr 2006 07:28:11 -0700 (PDT) Received: by 10.35.107.3 with HTTP; Wed, 5 Apr 2006 07:28:11 -0700 (PDT) Message-ID: Date: Wed, 5 Apr 2006 10:28:11 -0400 From: "Yonik Seeley" To: "Artem Vasiliev" Subject: Re: Re[4]: OutOfMemory with search(Query, Sort) Cc: java-user@lucene.apache.org, "Chris Hostetter" In-Reply-To: <363893233.20060405094612@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <756391613.20060401024129@gmail.com> <18784005.20060401141302@gmail.com> <363893233.20060405094612@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 4/5/06, Artem Vasiliev wrote: > The int[] array here contains references to String[] and to populate > it still all the field values need to be loaded and compared/sorted Terms are stored and iterated in sorted order, so no sorting needs to be do= ne. It's still the case that all the terms for that field need to be iterated over though. Another approach might be to store term vectors and retrieve the term only from documents matching a particular query. It might be slower per query, but wouldn't have the overhead of populating the int[] -Yonik http://incubator.apache.org/solr Solr, The Open Source Lucene Search Server --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org