CheckIndex
Basic tool and API to check the health of an index and write a new segments file that removes reference to problematic segments.
As this tool checks every byte in the index, on a large index it can take quite a long time to run.
Types
The marker RuntimeException used by CheckIndex APIs when index integrity failure is detected.
Walks the entire N-dimensional points space, verifying that all points fall within the last cell's boundaries.
Properties
Functions
Returns a Status instance detailing the state of the index.
Actually perform the index check
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.
Set infoStream where messages should go. See .setInfoStream.
Set infoStream where messages should go. If null, no messages are printed. If verbose is true then more details are printed.
Set threadCount used for parallelizing index integrity checking.