Checks is the index is optimized (if it has a single segment and no deletions)

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

Syntax

C#
public override bool IsOptimized()
Visual Basic
Public Overrides Function IsOptimized As Boolean
Visual C++
public:
virtual bool IsOptimized() override

Return Value

CopyC#
true
if the index is optimized;
CopyC#
false
otherwise

See Also