From: Ben V. K. <bva...@gm...> - 2009-06-30 14:11:55
|
What does the cluceneerror return in the what() field? Ben Verstuurd vanaf mijn iPhone Op 30 jun 2009 om 11:59 heeft Ankur Sethi <get...@gm...> het volgende geschreven:\ > Hi, > > I wish to index several files, each of which is a few megabytes in > size. When I try to use a FileInputStream to do this, CLucene throws a > CLuceneError (this happens when I try to add my document to the > IndexWriter). > > When I load my file into in memory (in a char*), I get no such error. > I figure the problem might lie in the way I create my field. Here is a > snippet: > > Field contentsField("contents", (StreamBase<char>*)&file, > Field::STORE_NO | Field::INDEX_TOKENIZED) ; > > Is that cast to StreamBase<char>* valid? > > Sorry if this sounds like something very obvious, but I have little > more than the CLucene API docs to go by. If there are better ways to > add a large file to an index without reading it into a buffer in > memory, I'd like to know. > > Thanks :) > > -- > Ankur Sethi > > --- > --- > --- > --------------------------------------------------------------------- > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers |