Method | Description | |
---|---|---|
CheckIndex ( Lucene.Net.Store.Directory dir ) : System |
Create a new CheckIndex on the directory.
|
|
CheckIndex_Renamed_Method ( ) : Status |
Returns a Status instance detailing the state of the index. As this method checks every byte in the index, on a large index it can take quite a long time to run. WARNING: make sure you only call this when the index is not opened by any writer.
|
|
CheckIndex_Renamed_Method ( List |
Returns a Status instance detailing the state of the index.
|
|
FixIndex ( Status result ) : void |
Repairs the index using previously returned result from CheckIndex. Note that this does not remove any of the unreferenced files after it's done; you must separately open an 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.
|
|
SetInfoStream ( StreamWriter @out ) : void |
Set infoStream where messages should go. If null, no messages are printed
|
Method | Description | |
---|---|---|
AssertsOn ( ) : bool | ||
Main ( System args ) : void | ||
Msg ( System msg ) : void | ||
TestAsserts ( ) : bool | ||
TestFieldNorms ( IEnumerable |
Test field norms.
|
|
TestStoredFields ( |
Test stored fields for a segment.
|
|
TestTermIndex ( |
Test the term index.
|
|
TestTermVectors ( |
Test term vectors for a segment.
|
public CheckIndex ( Lucene.Net.Store.Directory dir ) : System | ||
dir | Lucene.Net.Store.Directory | |
return | System |
public CheckIndex_Renamed_Method ( ) : Status | ||
return | Status |
public CheckIndex_Renamed_Method ( List |
||
onlySegments | List |
list of specific segment names to check
///
/// As this method checks every byte in the specified /// segments, on a large index it can take quite a long /// time to run. /// /// WARNING: make sure /// you only call this when the index is not opened by any /// writer. /// |
return | Status |
public SetInfoStream ( StreamWriter @out ) : void | ||
@out | StreamWriter | |
return | void |