Adding a new document does not immediately modify an index, so the time
it takes to add a new document to an existing index is not proportional
to the index size.  It is constant.  The execution time of optimize()
is proportional to the index size, so you want to do that only if you
really need it.  The Lucene article on http://www.onjava.com/ from
March 5th describes this in more detail.

Otis


--- "Rende Francesco, CS" <[EMAIL PROTECTED]> wrote:
> Hi,
> > I'm a lucene user and i found it a very interesting software.
> > 
> > My question is related to how manage incremental update of the
> lucene
> index.
> > In particular, adding more documents to a big index (~10 Gb) is the
> same
> of
> > creating a new segment and then merge the indexes?
> > Adding document to an existing and big index make the retrieve
> process
> slow?
> > 
> > Which is the best solution about the index performance:
> > 
> > a) create always a new index
> > 
> > b) create the index and then add more documents (with final
> optimize)
> > 
> > c) create the index then create a small segment for the new docs
> and then
> > merge the indexes.
> > 
> > Thanks in advance
> > 
> > F. Rende
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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

Reply via email to