Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How QtClucene work?
zither last edited by
I would like to know this library file QtClucene & how it works.
Is it related with lucence search like in java?
How can I implement this library?
goetz last edited by
Qt uses clucene for searching in the help documents. As far as I know clucene is a C port of the Java lucene. Unfortunately there is no documentation around, but you may want to have a look at the documentation and help modules' sources in the Qt source tree.
privet last edited by
There is no Qt-like interface for using QtLucene (=CLucene) in your app.
What a pity!!!
You have to compile+link the sources in your app and use CLucene API, like:
int iFlags = lucene::document::Field::STORE_YES | lucene::document::Field::INDEX_TOKENIZED;
doc.add(*(_CLNEW lucene::document::Field(tFieldName, tFieldVal, iFlags)));
m_pQuery = lucene::queryParser::QueryParser::parse(a,_T("text"),&analyzer);
m_pHits = searcher.search(m_pQuery);