Results 1 to 3 of 3

Thread: CLucene

  1. #1

    Default CLucene

    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.

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: CLucene

    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
    I'm a rebel in the S.D.G.

  3. #3

    Default Re: CLucene

    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 :

    Qt Code:
    1. CL_NS_USE(index)
    2. CL_NS_USE(util)
    3. CL_NS_USE(store)
    4. CL_NS_USE(search)
    5. CL_NS_USE(queryParser)
    6. CL_NS_USE(analysis)
    7. CL_NS_USE2(analysis,standard)
    8. CL_NS_USE(document)
    To copy to clipboard, switch view to plain text mode 

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

    Qt Code:
    1. 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@W4WindowType@Qt@@@@@Z)
    To copy to clipboard, switch view to plain text mode 

    Someone can help me?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.