lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: IndexSearcher and IndexWriter in conjuction
Date Mon, 13 Mar 2006 23:40:11 GMT

: The trick is that once segment files are written, they are never
: modified (except for the "segments" file itself).  New documents are
: added to new segments, not existing segments.  When segments are
: merged, a new bigger segment is created.  This way, the view of the
: index for a specific IndexReader will never change.

one thing to add here - when a segment is removed (beecuase it's contents
have been merged into a new segment) the file is deleted -- but any
existing reader/searcher that needs using that segment will still have it
open, so even though the file is no longer present in the directory, the
data will still exist and be available to the serachers that are using it.


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

View raw message