Repairs the index using previously returned result from {@link #checkIndex}. Note that this does not remove any of the unreferenced files after it's done; you must separately open an {@link IndexWriter}, which deletes unreferenced files when it's created.

WARNING: this writes a new segments file into the index, effectively removing all documents in broken segments from the index. BE CAREFUL.

WARNING: Make sure you only call this when the index is not opened by any writer.

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

Syntax

C#
public virtual void FixIndex(
	CheckIndex..::..Status result
)
Visual Basic
Public Overridable Sub FixIndex ( _
	result As CheckIndex..::..Status _
)
Visual C++
public:
virtual void FixIndex(
	CheckIndex..::..Status^ result
)

Parameters

result
Type: Lucene.Net.Index..::..CheckIndex..::..Status

[Missing <param name="result"/> documentation for "M:Lucene.Net.Index.CheckIndex.FixIndex(Lucene.Net.Index.CheckIndex.Status)"]

See Also