Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 14866 invoked from network); 24 May 2007 22:59:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 22:59:35 -0000 Received: (qmail 64760 invoked by uid 500); 24 May 2007 22:59:34 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 64719 invoked by uid 500); 24 May 2007 22:59:34 -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 64708 invoked by uid 99); 24 May 2007 22:59:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 15:59:34 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of carlosjosepita@gmail.com designates 64.233.162.236 as permitted sender) Received: from [64.233.162.236] (HELO nz-out-0506.google.com) (64.233.162.236) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 15:59:26 -0700 Received: by nz-out-0506.google.com with SMTP id i1so604288nzh for ; Thu, 24 May 2007 15:59:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=B0FAeMmWmLnhXRhhgnc89EzxnRXgyiOuj+dQ7cGJxppvpHfmLp3sFh0k6aBI4aXskAJYSn7el6bnsp6nQyzoilPaZr3QqxlwaJz99Uz1ic65UmfPkbbOusJosBCd+L4a0vJOpnvRxVufjIwFc2cCdnkENVw5Jjizt9SGvinHkOY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=reRLWtKGsmUDNaZtDeJg9gCvvDFfbik9HCEM5ySc55zoRTHhKbXy1QMOq+zHXSMGjpqIc5KbszkzzhMQ7d6rexgkxiVXV0kLWccaJhOHc5oZPwV+YFapJQDNC5UnQk/c7ZjyRIM+hENy7HGhJIVnRlSgCQHcNwxr94glbbtOYA0= Received: by 10.114.194.1 with SMTP id r1mr1194737waf.1180047544177; Thu, 24 May 2007 15:59:04 -0700 (PDT) Received: by 10.114.14.6 with HTTP; Thu, 24 May 2007 15:59:04 -0700 (PDT) Message-ID: <7798eaa0705241559o67839d2ej77929a99c609ced2@mail.gmail.com> Date: Thu, 24 May 2007 19:59:04 -0300 From: "Carlos Pita" To: java-user@lucene.apache.org Subject: Re: maxDoc and arrays In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_151177_24157737.1180047544131" References: <7798eaa0705240941y5b420dd3sb2867ed86008dc19@mail.gmail.com> <359a92830705241305h2aa4cd85pea7fde5b28c5213e@mail.gmail.com> <7798eaa0705241314n1cb2dc9fse01404d9bc6053ec@mail.gmail.com> <359a92830705241322j252da92fn5379926cd6c93792@mail.gmail.com> <7798eaa0705241327k739e5919id5e51783b6dc903@mail.gmail.com> <7798eaa0705241350h66ec67cew6c30388d962e4880@mail.gmail.com> <7798eaa0705241439w1e262f41ve5c7338a0d6a7276@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_151177_24157737.1180047544131 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Nice, I will write the ids into a byte array with a DataOutputStream and then marshal that array into a String with a UTF8 encoding. This way there is no need for parsing or splitting, and the encoding is space efficient. This marshaled String will be cached with a FieldCache. Thank you for your suggestions! I will tell you how well this worked as soon as I've implemented it. Cheers, Carlos On 5/24/07, Chris Hostetter wrote: > > : Mh, some of my fields are in fact multivaluated. But anyway, I could > store > : them as a single string and split after retrieval. > : Will FieldCache work for the first search with some query or just for > the > : successive ones, for which the fields are already cached? > > The first time you access the cache, it will populate it for every > document. ... it makes the first hit slow, but you can always force the > first hit arbitrarily prior to using the IndexReader for "real" queries > > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_151177_24157737.1180047544131--