Merges all segments together into a single segment, optimizing an index for search.
has this index open (
CopyC#
write.lock
could not be obtained)

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void Optimize()
Visual Basic
Public Overridable Sub Optimize
Visual C++
public:
virtual void Optimize()

See Also