lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Index Reader and Writer
Date Fri, 18 Apr 2003 13:49:42 GMT
You can make a reference static, but you will have to create new
instances on IndexReader/Writer.
I doubt making them static has any influence on performance, esp. if
your application involves communication via sockets.

Otis


--- mganesh <mganesh@newgen.co.in> wrote:
> Hello all,
>    My project is socket based application.Whenever I receive a
> request, i have to index the document send by the client using
>    lucene.
> 
>   Algorithm 
>    1.create Index reader object
>    2.delete the document if it is already indexed.
>    3. close the  Index reader 
>    4. create Index writer object
>    5. Add a document to writer object
>    6. Optimise the index
>    7.close the writer object
> 
>  I have to index around 1 lakh (100,000) document.
>  Here Im creating Reader and Writer object for every request.
> 
>  Whether If I create only one Reader and Writer Object and make it as
> static then the performance will increase??
>  Whether the Index reader and writer object has any influence with
> the performance??  
> 
> regards
> ganesh
> 
> 
> 
>   
> 


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message