Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 96372 invoked from network); 26 Oct 2005 16:14:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Oct 2005 16:14:04 -0000 Received: (qmail 50890 invoked by uid 500); 26 Oct 2005 16:13:57 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 50869 invoked by uid 500); 26 Oct 2005 16:13:56 -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 50858 invoked by uid 99); 26 Oct 2005 16:13:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2005 09:13:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jeff.rodenburg@gmail.com designates 66.249.82.194 as permitted sender) Received: from [66.249.82.194] (HELO xproxy.gmail.com) (66.249.82.194) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2005 09:13:53 -0700 Received: by xproxy.gmail.com with SMTP id s19so23624wxc for ; Wed, 26 Oct 2005 09:13:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=UpdJh3ScIupnWfaVV9vrlqB1NGRpQSNGN98eR6xAJOxnHjJK3yW1S+uEJLL+R4fR2rWbmR+sJtDyiupE3RXfxYzsw1ASLSzU6oce+8K7cY0K5Z/K/l0/ql4+liNjrfHAma7Wlojaj8crLUGA5c2X7tHrrekE6sb3Mdml4bdKPuM= Received: by 10.64.204.7 with SMTP id b7mr798663qbg; Wed, 26 Oct 2005 09:13:34 -0700 (PDT) Received: by 10.65.35.7 with HTTP; Wed, 26 Oct 2005 09:13:34 -0700 (PDT) Message-ID: <50f433360510260913s579f93e8y8773d33e846a6562@mail.gmail.com> Date: Wed, 26 Oct 2005 09:13:34 -0700 From: Jeff Rodenburg To: java-user@lucene.apache.org Subject: Re: MaxFieldLength or MaxFields? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_469_12338701.1130343214207" References: <50f433360510252350r3bddd8e9ldfb6dd47f19ea6bf@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_469_12338701.1130343214207 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline thanks Erik On 10/26/05, Erik Hatcher wrote: > > > On 26 Oct 2005, at 02:50, Jeff Rodenburg wrote: > > I'm considering building out an index that will flatten a data > > structure, > > such that some Document "A" will have Fields 1,2 and 3. > > Fields 1 and 2 are indexed/tokenized field. Field 3 is indexed, and > > will > > contain many discrete values (up to possibly 5000). > > > > Couple of questions: > > 1. Does the DEFAULT_MAX_FIELD_LENGTH on IndexWriter come into play > > for Field > > 3? Field 3 values are added to the document individually, there's > > just a > > bunch of them. > > No. The max field length only comes into play for tokenized > (analyzed) fields. > > > 2. Is MaxFieldLength a consideration for this? > > The default is 10,000, so you're safe :) > > From IndexWriter.java: > public final static int DEFAULT_MAX_FIELD_LENGTH =3D 10000; > > > Any guidance before I go through the trouble of building the index > > would be > > greatly appreciated. > > Never be afraid to just try out things. It's easy enough to whip up > a simple Java program of only a few lines that would exercise this > sort of thing. A simple for loop adding 5000 identically named non- > tokenized, indexed fields to a document would prove this to yourself. > > And now with Ferret - http://ferret.davebalmain.com/trac/ - the fun > and lightweight nature of Ruby will allow us to experiment with > Lucene without even compilation (or suffering Python syntax :). > > Erik > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_469_12338701.1130343214207--