lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "none none" <>
Subject Re: Index Persistency
Date Fri, 31 May 2002 03:24:08 GMT

On Thu, 30 May 2002 22:33:26  
 Hyong Ko wrote:
>Do I have to reindex everything when I restart Lucene? Thanks.
As i know you don't have to reindex, you need to reindex when you want to "refresh" your documents.
Let's say:
1.You create an index.
2.Open a IndexSearcher to run search.
3.Now you can,basically, 2 things:
 a)Add or update (delete+add) documents: in this case you can just optimize the index but
is not mandatory (the IndexSearcher will be an instance of SegmentReader or SegmentsReader)
 b)Rebuild the index if you thing a lot of document should be updated
 something like 60-70% of documents have been updated.
Take a look at the IndexAccessManager, just run a search in the mailing list.

>Join the world’s largest e-mail service with MSN Hotmail. 
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

Outgrown your current e-mail service?
Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message