This is a scope issue - by the time you call writer->addDocument, the
fields you added to it are freed. Use this code instead:
| document->add(* new lucene::document::Field(fieldName, fieldValue,
true, true, true, false));
|
You may want to look at cl_demo and cl_test to see some c
perhaps, this is a bug:
http://stackoverflow.com/questions/3150563/
environment:
Kubuntu 10.04 64-bit
g++-4.4 4.4.3-4ubuntu5 (amd64), libstdc++6 4.4.3-4ubuntu5 (amd64),
libstdc++6-4.4-dev 4.4.3-4ubuntu5 (amd64)
libclucene-dev 0.9.21b-2 (amd64), libclucene0ldbl 0.9.21b-2 (amd64)
libtag1-dev 1