From: Michael Z. (B. 7. LEXIN) <mzh...@bl...> - 2013-10-09 14:51:54
|
I try to write a test application in Microsoft VS 2010 as following. and when I debug the code, it crash at: writer.addDocument(&doc); and I get an error message, it shows: Runtime Error! Program: C:... R6025 - pure virtual function call Anybody knows how to fix it? Thanks. ___________________________________________________________________ RAMDirectory directory; StandardAnalyzer analyzer; IndexWriter writer(&directory, &analyzer, true); lucene::document::Document doc; doc.add(lucene::document::Field(L"content", L"abcd", lucene::document::Field::STORE_YES| lucene::document::Field::INDEX_TOKENIZED, true)); writer.addDocument(&doc); writer.optimize(); writer.close(); |