Checks is the index is optimized (if it has a single segment and no deletions). Not implemented in the IndexReader base class.

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

Syntax

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

Return Value

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

See Also