Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
65 static bool testAsserts();
66 static bool assertsOn();
92 void msg(
const String& msg);
bool openReaderPassed
True if we were able to open a SegmentReader on this segment.
Definition: CheckIndex.h:211
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< StoredFieldStatus > StoredFieldStatusPtr
Definition: LuceneTypes.h:229
SegmentInfosPtr newSegments
SegmentInfos instance containing only segments that had no problems (this is used with the CheckIndex...
Definition: CheckIndex.h:152
FieldNormStatusPtr fieldNormStatus
Status for testing of field norms (null if field norms could not be tested).
Definition: CheckIndex.h:224
int32_t totLoseDocCount
How many documents will be lost to bad segments.
Definition: CheckIndex.h:155
boost::shared_ptr< IndexStatus > IndexStatusPtr
Definition: LuceneTypes.h:159
boost::shared_ptr< FieldNormStatus > FieldNormStatusPtr
Definition: LuceneTypes.h:129
boost::shared_ptr< SegmentInfo > SegmentInfoPtr
Definition: LuceneTypes.h:208
String segmentFormat
String description of the version of the index.
Definition: CheckIndex.h:135
int64_t totVectors
Total number of term vectors tested.
Definition: CheckIndex.h:306
int32_t docStoreOffset
Doc store offset, if this segment shares the doc store files (stored fields and term vectors) with ot...
Definition: CheckIndex.h:193
Status from testing stored fields.
Definition: CheckIndex.h:275
double sizeMB
Net size (MB) of the files referenced by this segment.
Definition: CheckIndex.h:189
String docStoreSegment
String of the shared doc store segment, or null if this segment does not share the doc store files.
Definition: CheckIndex.h:196
int64_t totFields
Total number of stored fields tested.
Definition: CheckIndex.h:287
DirectoryPtr dir
Definition: CheckIndex.h:30
Status from testing stored fields.
Definition: CheckIndex.h:294
int32_t numSegments
Number of segments in the index.
Definition: CheckIndex.h:132
bool hasDeletions
True if this segment has pending deletions.
Definition: CheckIndex.h:202
int32_t numDeleted
Number of deleted documents.
Definition: CheckIndex.h:208
boost::shared_ptr< SegmentReader > SegmentReaderPtr
Definition: LuceneTypes.h:215
LuceneException error
Exception thrown during term index test (null on success)
Definition: CheckIndex.h:271
Collection< String > segmentsChecked
Empty unless you passed specific segments list to check as optional 3rd argument.
Definition: CheckIndex.h:139
String deletionsFileName
Name of the current deletions file name.
Definition: CheckIndex.h:205
Status from testing field norms.
Definition: CheckIndex.h:237
bool hasProx
True if at least one of the fields in this segment does not omitTermFreqAndPositions.
Definition: CheckIndex.h:218
int32_t numFields
Number of fields in this segment.
Definition: CheckIndex.h:214
bool missingSegments
True if we were unable to locate and load the segments_N file.
Definition: CheckIndex.h:120
Definition: AbstractAllTermDocs.h:12
bool cantOpenSegments
True if we were unable to open the segments_N file.
Definition: CheckIndex.h:123
Base class for all Lucene classes.
Definition: LuceneObject.h:31
LuceneException error
Exception thrown during term index test (null on success)
Definition: CheckIndex.h:249
int32_t docCount
Document count (does not take deletions into account).
Definition: CheckIndex.h:180
Returned from checkIndex() detailing the health and status of the index.
Definition: CheckIndex.h:108
MapStringString diagnostics
Map that includes certain debugging details that IndexWriter records into each segment it creates.
Definition: CheckIndex.h:221
Holds the status of each segment in the index. See segmentInfos.
Definition: CheckIndex.h:168
MapStringString userData
Holds the userData of the last commit in the index.
Definition: CheckIndex.h:164
int64_t termCount
Total term count.
Definition: CheckIndex.h:258
Status from testing term index.
Definition: CheckIndex.h:253
int64_t totFields
Number of fields successfully tested.
Definition: CheckIndex.h:242
int32_t numFiles
Number of files referenced by this segment.
Definition: CheckIndex.h:186
TermIndexStatusPtr termIndexStatus
Status for testing of indexed terms (null if indexed terms could not be tested).
Definition: CheckIndex.h:227
bool partial
True if we checked only specific segments (checkIndex(List)) was called with non-null argument).
Definition: CheckIndex.h:161
LuceneException error
Exception thrown during stored fields test (null on success)
Definition: CheckIndex.h:290
Basic tool and API to check the health of an index and write a new segments file that removes referen...
Definition: CheckIndex.h:20
bool docStoreCompoundFile
True if the shared doc store files are compound file format.
Definition: CheckIndex.h:199
Lucene exception container.
Definition: LuceneException.h:15
static bool _assertsOn
Definition: CheckIndex.h:32
boost::shared_ptr< TermVectorStatus > TermVectorStatusPtr
Definition: LuceneTypes.h:257
DirectoryPtr dir
Directory index is in.
Definition: CheckIndex.h:148
Collection< SegmentInfoStatusPtr > segmentInfos
List of SegmentInfoStatus instances, detailing status of each segment.
Definition: CheckIndex.h:145
boost::shared_ptr< SegmentInfos > SegmentInfosPtr
Definition: LuceneTypes.h:210
bool toolOutOfDate
True if the index was created with a newer version of Lucene than the CheckIndex tool.
Definition: CheckIndex.h:142
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
StoredFieldStatusPtr storedFieldStatus
Status for testing of stored fields (null if stored fields could not be tested).
Definition: CheckIndex.h:230
boost::shared_ptr< InfoStream > InfoStreamPtr
Definition: LuceneTypes.h:532
TermVectorStatusPtr termVectorStatus
Status for testing of term vectors (null if term vectors could not be tested).
Definition: CheckIndex.h:233
int32_t numBadSegments
How many bad segments were found.
Definition: CheckIndex.h:158
int64_t totFreq
Total frequency across all terms.
Definition: CheckIndex.h:265
int64_t totPos
Total number of positions.
Definition: CheckIndex.h:268
LuceneException error
Exception thrown during term vector test (null on success)
Definition: CheckIndex.h:309
bool compound
True if segment is compound file format.
Definition: CheckIndex.h:183
String segmentsFileName
Name of latest segments_N file in the index.
Definition: CheckIndex.h:129
boost::shared_ptr< TermIndexStatus > TermIndexStatusPtr
Definition: LuceneTypes.h:238
bool missingSegmentVersion
True if we were unable to read the version number from segments_N file.
Definition: CheckIndex.h:126
clucene.sourceforge.net