On Fri, 2005-01-07 at 13:24, Crump, Michael wrote: > Is there a simple way to check and see if an index is already optimized? > What happens if optimize is called on an already optimized index - does > the call basically do a noop? Or is it still and expensive call?
If an index has no deletions, it does not need to be optimized. You can find out if it has deletions with IndexReader.hasDeletions. I am not sure what the cost of optimization is if the index doesn't need it. Perhaps someone else on this list knows. Regards, Luke Francl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]