Install fts_lucene

JohnHandcock

New member
Joined
Jun 12, 2013
Messages
3
Dovecot 2.2.2 on CentOS 6.4. Trying to install fts_lucene for full text searching. Downloaded clucene-core-2.3.3.4.tar.gz, untared, and ran cmake -i. Not sure where to go after that point besides accepting the defaults. Already added

mail_plugins = $mail_plugins fts fts_lucene

plugin {
fts = lucene
# Lucene-specific settings, good ones are:
fts_lucene = whitespace_chars=@.
}

To 90-plugin.conf. When I run doveadm fts I get
#doveadm fts
doveadm(root): Fatal: Plugin 'fts_lucene' not found from directory /usr/lib64/dovecot

Would be very thankful for any help to get to the next step. Haven't found a lot of doco on the process unfortunately via the site nor Google. Thank you!

John Handcock
 
Update

Instead of cmake -i I ran cmake -G "Unix Makefiles" and then make and make install. Doesn't look like it install in lib64 and instead /usr/local/lib. So a bit further in the right direction I hope.
 
Solved

Dumped fts_lucene and went with solr. This helped a lot:

From: http://pastebin.com/a8nUbdqq
yum install java-1.7.0-openjdk.i686
yum install tomcat6.noarch
wget http://mirror.lividpenguin.com/pub/apache/lucene/solr/4.0.0/apache-solr-4.0.0.tgz
tar -xzvf apache-solr-4.0.0.tgz
cd apache-solr-4.0.0
cp -a example/solr /opt/
cp dist/apache-solr-4.0.0.war /opt/solr/solr.war
chown tomcat:tomcat -R /opt/solr

cat > /usr/share/tomcat6/conf/Catalina/localhost/solr.xml <<EOF
<?xml version="1.0" encoding="utf-8"?>
<Context docBase="/opt/solr/solr.war" debug="0" crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="/opt/solr/" override="true"/>
</Context>
EOF
chkconfig tomcat6 on && service tomcat6 restart
 
How is this related to DirectAdmin?

We should state "A forum for the Directadmin control panel" in the header logo
 
Back
Top