Thanks, John and Marcus.</DIV> Below is the related code in jsp file, and the stacktrace is null even it failed to open the index. try { out.print("To open index"); reader = IndexReader.open(indexName); out.print("have opened the index"); indexsize=reader.numDocs(); searcher = new IndexSearcher(reader); } catch (Exception e) { e.printStackTrace(); error = true; } ..... if (reader != null) reader.close(); if (searcher != null) searcher.close(); BR, Shawn
----- Original Message ---- From: Marcus Herou <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, August 5, 2008 3:00:15 PM Subject: Re: failed to open an indexer after about 20 queries Hi. And some exception stacktrace would be nice as well. Kindly //Marcus On Tue, Aug 5, 2008 at 4:58 AM, John Griffin <[EMAIL PROTECTED]>wrote: > Xh, > > Sorry about those questions. I received two copies of your email. The first > was corrupt. > > We still need to see more code. No there isn't any special config > necessary. > > John G. > > -----Original Message----- > From: xh sun [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2008 8:34 PM > To: java-user@lucene.apache.org > Subject: failed to open an indexer after about 20 queries > > Hi, > The indexer can't be opened after about 20 queries in linux system, but it > is fine if the index is in windows system. The indexer is the same in both > systems. > reader = IndexReader.open(indexName); //failed after about 20 > queries > searcher = new IndexSearcher(reader); > > The reader and search have been closed after each query. Is there any > special configuration for the index in linux system? > Appreicate your help very much. > BR, > Shawn > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Marcus Herou CTO and co-founder Tailsweep AB +46702561312 [EMAIL PROTECTED] http://www.tailsweep.com/ http://blogg.tailsweep.com/