On 3/13/06, Nikhil Goel <[EMAIL PROTECTED]> wrote:
> Can someone please explain how does IndexSearcher and IndexWriter works in
> conjuction.

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.

-Yonik
http://incubator.apache.org/solr Solr, The Open Source Lucene Search Server

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to