Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void IndexModifier::createIndexReader (  )  [protected]

Close the IndexWriter and open an IndexReader.

Exceptions:
IOException 

Definition at line 65 of file IndexModifier.cpp.

References IndexWriter::close(), and IndexReader::open().

Referenced by deleteDocument(), deleteDocuments(), document(), flush(), termDocs(), and terms().

                                      {
      if (indexReader == NULL) {
            if (indexWriter != NULL) {
                  indexWriter->close();
                  _CLDELETE(indexWriter);
            }
            indexReader = IndexReader::open(directory);
      }
}


Generated by  Doxygen 1.6.0   Back to index