Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 68216 invoked from network); 5 Aug 2008 07:53:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 07:53:56 -0000 Received: (qmail 57202 invoked by uid 500); 5 Aug 2008 07:53:50 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 56298 invoked by uid 500); 5 Aug 2008 07:53:48 -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 56287 invoked by uid 99); 5 Aug 2008 07:53:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 00:53:48 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FUZZY_CPILL,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [202.165.102.86] (HELO web15806.mail.cnb.yahoo.com) (202.165.102.86) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 05 Aug 2008 07:52:50 +0000 Received: (qmail 29215 invoked by uid 60001); 5 Aug 2008 07:52:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=SmKsS6gasa8/hkF8X57kfcVCSLd3NKpyBFtf6MTPhIEoaS6VWAAP70k55U3Ti1GMivdaTLipP/1tYX7iQjGJnOmNTw3J6gZf5scDSscv41tsnzlL2dXdbSdmgdn4F8/0VOk6YSww85tcU01kv81VlKbegeYjSwr/eeXx4B41ge0=; Received: from [122.225.11.254] by web15806.mail.cnb.yahoo.com via HTTP; Tue, 05 Aug 2008 15:52:15 CST X-Mailer: YahooMailRC/1042.48 YahooMailWebService/0.7.218 Date: Tue, 5 Aug 2008 15:52:15 +0800 (CST) From: xh sun Subject: Re: failed to open an indexer after about 20 queries To: java-user@lucene.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-333654184-1217922735=:28927" Message-ID: <508175.28927.qm@web15806.mail.cnb.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-333654184-1217922735=:28927 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, John and Marcus.=0ABelow is the related code in jsp file, and= the stacktrace is null even it failed to open the index.=0A=A0=A0=A0=A0=A0= =A0 =0A=A0=A0=A0=A0=A0=A0=A0 try =0A=A0=A0=A0=A0=A0=A0=A0 {=0A=A0=A0=A0=A0= =A0=A0=A0=A0=A0 out.print("To open index");=A0=A0=A0=A0=A0=A0=A0 =0A=A0=A0= =A0=A0=A0=A0=A0=A0=A0 reader =3D IndexReader.open(indexName);=A0 =0A=A0=A0= =A0=A0=A0=A0=A0=A0=A0 out.print("have opened the index");=0A=A0=A0=A0=A0=A0= =A0=A0=A0=A0 indexsize=3Dreader.numDocs();=A0=A0=A0=A0=A0 =0A=A0=A0=A0=A0= =A0=A0=A0=A0=A0 searcher =3D new IndexSearcher(reader);=A0=A0 =0A=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 =0A=A0=A0=A0=A0=A0=A0=A0 } =0A=A0=A0=A0=A0=A0=A0=A0 catch (Exception= e) =0A=A0=A0=A0=A0=A0=A0=A0 { =0A=A0=A0=A0=A0=A0=A0=A0 e.printStackTrace()= ;=0A=A0=A0=A0=A0=A0=A0=A0 error =3D true;=A0 =0A=A0=A0=A0=A0=A0=A0=A0 }=0A.= ....=0A=A0 if (reader !=3D null)=0A=A0=A0=A0 reader.close();=0A=A0 if (sear= cher !=3D null)=0A=A0=A0=A0 searcher.close();=A0=A0=A0 =0A=A0=A0=A0 =0ABR,= =0AShawn=0A=0A=0A=0A----- Original Message ----=0AFrom: Marcus Herou =0ATo: java-user@lucene.apache.org=0ASent: Tuesday, A= ugust 5, 2008 3:00:15 PM=0ASubject: Re: failed to open an indexer after abo= ut 20 queries=0A=0AHi.=0A=0AAnd some exception stacktrace would be nice as = well.=0A=0AKindly=0A=0A//Marcus=0A=0AOn Tue, Aug 5, 2008 at 4:58 AM, John G= riffin wrote:=0A=0A> Xh,=0A>=0A> Sorry about thos= e questions. I received two copies of your email. The first=0A> was corrupt= .=0A>=0A> We still need to see more code. No there isn't any special config= =0A> necessary.=0A>=0A> John G.=0A>=0A> -----Original Message-----=0A> From= : xh sun [mailto:wysunxiaohua@yahoo.com.cn]=0A> Sent: Monday, August 04, 20= 08 8:34 PM=0A> To: java-user@lucene.apache.org=0A> Subject: failed to open = an indexer after about 20 queries=0A>=0A> Hi,=0A> The indexer can't be open= ed after about 20 queries in linux system, but it=0A> is fine if the index = is in windows=A0 system. The indexer is the same in both=0A> systems.=0A>= =A0 =A0 =A0 =A0 =A0 reader =3D IndexReader.open(indexName);=A0 =A0 //failed= after about 20=0A> queries=0A>=A0 =A0 =A0 =A0 =A0 searcher =3D new IndexSe= archer(reader);=0A>=0A> The reader and search have been closed after each q= uery. Is there any=0A> special configuration for the index in linux system?= =0A> Appreicate your help very much.=0A> BR,=0A> Shawn=0A>=0A>=0A>=0A>=0A>= =0A> ---------------------------------------------------------------------= =0A> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org=0A> Fo= r additional commands, e-mail: java-user-help@lucene.apache.org=0A>=0A>=0A= =0A=0A-- =0AMarcus Herou CTO and co-founder Tailsweep AB=0A+46702561312=0Am= arcus.herou@tailsweep.com=0Ahttp://www.tailsweep.com/=0Ahttp://blogg.tailsw= eep.com/=0A=0A=0A=0A --0-333654184-1217922735=:28927--