lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xh sun <wysunxiao...@yahoo.com.cn>
Subject Re: failed to open an indexer after about 20 queries
Date Tue, 05 Aug 2008 07:52:15 GMT
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 <marcus.herou@tailsweep.com>
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 <jgriffin@thebluezone.net>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:wysunxiaohua@yahoo.com.cn]
> 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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
Marcus Herou CTO and co-founder Tailsweep AB
+46702561312
marcus.herou@tailsweep.com
http://www.tailsweep.com/
http://blogg.tailsweep.com/



      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message