[Dovecot] 2.1: problems compiling fts-lucene - CLucene git version necessary?

Lutz Preßler Lutz.Pressler at SerNet.DE
Tue Sep 20 10:12:45 EEST 2011


On Mo, 19 Sep 2011, Timo Sirainen wrote:

> On Sun, 2011-09-18 at 13:27 +0200, Lutz Preßler wrote:
> > Hello,
> > On So, 11 Sep 2011, Timo Sirainen wrote:
> > > On 11.9.2011, at 22.22, Lutz Preßler wrote:
> > > > I have problems recompiling the Debian squeeze auto build packages
> > > > with "--with-lecene". Is the git (2.3) version of CLucene necessary?
> > > Yes.
> > Ok, I now tried to test with clucene-core-2.3.3.4. Quite unsucessfully...
> > I built libclucene-core-static.a and libclucene-shared-static.a after
> > changing the cmake option (BUILD_STATIC_LIBRARIES). But despite enabling
> > BUILD_CONTRIBS, BUILD_CONTRIBS_LIB no snowball/libstemmer has been build.
> 
> You need to install libstemmer separately. I think I used
> http://snowball.tartarus.org/dist/libstemmer_c.tgz
Still having build problems --with-stemmer... libstemmer built and referenced
seperately, libtextcat as Debian package, it's:
lucene-wrapper.cc: In function 'lucene_index* lucene_index_init(const char*, mailbox_list*, const fts_lucene_settings*)':
lucene-wrapper.cc:108: error: no matching function for call to 'lucene::analysis::snowball::SnowballAnalyzer::SnowballAnalyzer(const char*&)'
../../../../clucene-core-2.3.3.4/src/contribs-lib/CLucene/snowball/SnowballAnalyzer.h:32: note: candidates are: lucene::analysis::snowball::SnowballAnalyzer::SnowballAnalyzer(const TCHAR*, const TCHAR**)
../../../../clucene-core-2.3.3.4/src/contribs-lib/CLucene/snowball/SnowballAnalyzer.h:28: note:                 lucene::analysis::snowball::SnowballAnalyzer::SnowballAnalyzer(const TCHAR*)
../../../../clucene-core-2.3.3.4/src/contribs-lib/CLucene/snowball/SnowballAnalyzer.h:22: note:                 lucene::analysis::snowball::SnowballAnalyzer::SnowballAnalyzer(const lucene::analysis::snowball::SnowballAnalyzer&)

index->set.default_language is char, but TCHAR is wchar_t but not char?

> 
> > dovecot: imap(...): Error: fts_lucene: default_language set, but Dovecot built without stemmer support
> 
> Fixed: http://hg.dovecot.org/dovecot-2.1/rev/02c84406c661
Without stemmer support it works nicely now though.
One further question: Is fts indexing after delivery still on your TODO list?

Lutz 



More information about the dovecot mailing list