PDA

View Full Version : CLucene



kate_arsher
1st July 2008, 11:28
Hi!!

I need to use CLucene, with QT. There's an easy way to do this, or a good tutorial?
Maybe it's not possible, the project need to be compiled on multiple platforms like unix, macintosh and windows.

Thanks.

lyuts
1st July 2008, 12:18
Documentation is provided at http://clucene.sourceforge.net/doc/doxygen/html/
You can also build your own documentation by running doxygen from the root directory
of clucene.
CLucene is a very close port of Java Lucene, so you can also try looking at the
Java Docs on http://lucene.apache.org/java/

That what is said in README under $QTDIR\src\3rdparty\clucene

kate_arsher
1st July 2008, 14:03
Ok, i've see the documentation...

I've downloaded CLucene 0.9.20, the last stable version.
I've created a little QT project, just for the test.
I've linked clucene-coreUDMT.lib, inclued "clucene.h" and added these lines :



CL_NS_USE(index)
CL_NS_USE(util)
CL_NS_USE(store)
CL_NS_USE(search)
CL_NS_USE(queryParser)
CL_NS_USE(analysis)
CL_NS_USE2(analysis,standard)
CL_NS_USE(document)


All is ok, i can unse the class StandardAnalyzer, IndexWriter, Document but when i try to use the Field class, i've this error :



testlucene.obj : error LNK2019: unresolved external symbol "public: __thiscall lucene::document::Field::Field(unsigned short const *,unsigned short const *,bool,bool,bool,bool)" (??0Field@document@lucene@@QAE@PBG0_N11_N@Z) referenced in function "public: __thiscall TestLucene::TestLucene(class QWidget *,class QFlags<enum Qt::WindowType>)" (??0TestLucene@@QAE@PAVQWidget@@V?$QFlags@W4Window Type@Qt@@@@@Z)


Someone can help me?