|
From: <am...@ma...> - 2003-10-16 13:41:30
|
Albert, I have no idea why would your demo application crash, perhaps there's something in the data you are trying to index that it doesnt like? I've compiled Rob's patched version last night and it worked "out of the box". It went through that sample Reuters textbase without any core dumps, while the original 0.8.1 core dumps few files into it, so this is a great improvement! Then I got my PHP extension compiled with this modified source and after a few small changes that works great too. Now I can index, optimize, delete, search documents with the sample php included without any problems. My own proof of concept code also works (you upload any M$ Word file, it gets converted to plain text, indexed and the file stored in some directory. Afterwards you can search through the contents with title and author fields and find whatever...) Just one word: wooohooo :) -pedja > Hi all, > > I downloaded the patch, compiled and installed. I add another patch, > the StringBuffer.cpp class has a few problems. > 1- The prepend method > //if ( len+sl+1 > bufferLength ) > // growBuffer ( ); > while(len+sl+1>bufferLength) > growBuffer(); > 2- The clear method > delete buffer; > buffer = new char_t[LUCENE_STREAM_BUFFER_SIZE]; > bufferLength = LUCENE_STREAM_BUFFER_SIZE; > len = 0; > > Now, when I execute my demo application, it just crash by > segmentation fault after the _cout << "start indexing" << endln; line. > |