Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 55665 invoked from network); 19 Dec 2005 01:53:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Dec 2005 01:53:42 -0000 Received: (qmail 5065 invoked by uid 500); 19 Dec 2005 01:53:34 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 4951 invoked by uid 500); 19 Dec 2005 01:53: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 4776 invoked by uid 99); 19 Dec 2005 01:53:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2005 17:53:33 -0800 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 davekor@gmail.com designates 64.233.184.206 as permitted sender) Received: from [64.233.184.206] (HELO wproxy.gmail.com) (64.233.184.206) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2005 17:53:32 -0800 Received: by wproxy.gmail.com with SMTP id i7so1224943wra for ; Sun, 18 Dec 2005 17:53:11 -0800 (PST) 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:content-transfer-encoding:content-disposition:references; b=SdkeYDPZ6Ipye4mOdfp2oIdHJVMPhXcu3HAfUw6C45CdfP56tsTYCNfQqyRwTQUwuigBeY2UhsBgwRjMaoTX09wuvF5TJh+Ei7QdCukUKCgJHM1q/ewwIRnauy5FAinsXAB+anDu6rdy/vAOqbAgvFQUUnJQSWKmXmZfFpdT/Qc= Received: by 10.54.136.10 with SMTP id j10mr439054wrd; Sun, 18 Dec 2005 17:53:11 -0800 (PST) Received: by 10.54.129.8 with HTTP; Sun, 18 Dec 2005 17:53:11 -0800 (PST) Message-ID: <901c03930512181753g3a256829k9852cd540a0e1a57@mail.gmail.com> Date: Mon, 19 Dec 2005 09:53:11 +0800 From: Dave Kor To: java-user@lucene.apache.org Subject: Re: Index Question In-Reply-To: <36444.129.237.127.202.1134953509.squirrel@webmail.ittc.ku.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <36444.129.237.127.202.1134953509.squirrel@webmail.ittc.ku.edu> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 12/19/05, praveenl@ittc.ku.edu wrote: > Hi, > > I know that lucene index takes a directory of files to be indexed and > builds the index. Now is there a way to specify the number of files from > the directory to be indexed? > > I mean if I have a directory of 10,000 files and I want an index of only > 2000 files from these 10k files, how can specify the limit? > Lucene is only a search engine library. This means you can customize Lucene to behave exactly how you want it to behave. For your issue, I guess the fastest way is to modify the Lucene demo program to only read 2000 files instead of every single file in the directory. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org