re-construct lucene with C++