public static class CheckIndex.Status extends Object
CheckIndex.checkIndex() detailing the health and status of the index.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
CheckIndex.Status.DocValuesStatus
Status from testing DocValues 
 | 
static class  | 
CheckIndex.Status.FieldInfoStatus
Status from testing field infos. 
 | 
static class  | 
CheckIndex.Status.FieldNormStatus
Status from testing field norms. 
 | 
static class  | 
CheckIndex.Status.IndexSortStatus
Status from testing index sort 
 | 
static class  | 
CheckIndex.Status.LiveDocStatus
Status from testing livedocs 
 | 
static class  | 
CheckIndex.Status.PointsStatus
Status from testing PointValues 
 | 
static class  | 
CheckIndex.Status.SegmentInfoStatus
Holds the status of each segment in the index. 
 | 
static class  | 
CheckIndex.Status.StoredFieldStatus
Status from testing stored fields. 
 | 
static class  | 
CheckIndex.Status.TermIndexStatus
Status from testing term index. 
 | 
static class  | 
CheckIndex.Status.TermVectorStatus
Status from testing stored fields. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
boolean | 
clean
True if no problems were found with the index. 
 | 
Directory | 
dir
Directory index is in. 
 | 
long | 
maxSegmentName
The greatest segment name. 
 | 
boolean | 
missingSegments
True if we were unable to locate and load the segments_N file. 
 | 
int | 
numBadSegments
How many bad segments were found. 
 | 
int | 
numSegments
Number of segments in the index. 
 | 
boolean | 
partial
True if we checked only specific segments ( 
CheckIndex.checkIndex(List)) was called with non-null
 argument). | 
List<CheckIndex.Status.SegmentInfoStatus> | 
segmentInfos
List of  
CheckIndex.Status.SegmentInfoStatus instances, detailing status of each segment. | 
List<String> | 
segmentsChecked
Empty unless you passed specific segments list to check as optional 3rd argument. 
 | 
String | 
segmentsFileName
Name of latest segments_N file in the index. 
 | 
boolean | 
toolOutOfDate
True if the index was created with a newer version of Lucene than the CheckIndex tool. 
 | 
int | 
totLoseDocCount
How many documents will be lost to bad segments. 
 | 
Map<String,String> | 
userData
Holds the userData of the last commit in the index 
 | 
boolean | 
validCounter
Whether the SegmentInfos.counter is greater than any of the segments' names. 
 | 
public boolean clean
public boolean missingSegments
public String segmentsFileName
public int numSegments
public List<String> segmentsChecked
CheckIndex.checkIndex(List)public boolean toolOutOfDate
public List<CheckIndex.Status.SegmentInfoStatus> segmentInfos
CheckIndex.Status.SegmentInfoStatus instances, detailing status of each segment.public Directory dir
public int totLoseDocCount
public int numBadSegments
public boolean partial
CheckIndex.checkIndex(List)) was called with non-null
 argument).public long maxSegmentName
public boolean validCounter
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.