Reorganizes index files for optimal search speed.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public void Optimize()
Public Sub Optimize
public: void Optimize()
Remarks
Adding/deleting documents from the index causes the index to become fragmented, therefore calling
Optimize after batch operations will speed up searching.