Hi, do you know the error number and the message of the CLucene exception?
Kind regards, Veit 2010/4/8 范云飞 <[email protected]>: > hi, everyone! i'm a chinese and my english is poor. sorry! > > when i use clucene index a disk file, i get an exception, follows is > error message, please help me. why? > thanks in advanced! > > ================================================================ > terminate called after throwing an instance of 'CLuceneError' > Aborted (core dumped) > ================================================================ > > #include <iostream> > > #include "CLucene.h" > > using namespace std; > using namespace jstreams; > using namespace lucene::analysis; > using namespace lucene::analysis::standard; > using namespace lucene::store; > using namespace lucene::document; > using namespace lucene::index; > using namespace lucene::search; > using namespace lucene::util; > using namespace lucene::queryParser; > > > int main() > { > StandardAnalyzer an; > IndexWriter > writer("/home/fanyf/work/cppwork/clucene_test/index", &an, true); > > Document doc; > > jstreams::FileReader *fr = new > jstreams::FileReader("/home/fanyf/work/cppwork/clucene_test/rfc2616.txt", > "UTF-8"); > doc.add(*_CLNEW Field(_T("contents"),fr, Field::STORE_YES | > Field::INDEX_TOKENIZED )); > writer.addDocument(&doc); > > writer.optimize(); > writer.close(); > > cout << "hello world" << endl; > > return 0; > } > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > CLucene-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/clucene-developers > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ CLucene-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clucene-developers
