Since I was recently asked off-list - thought I'd make this available if it will help anyone else. Attached is my (I hope) working 6.4.1 config. Also some instructions:
First, you have to decide if you're running in standalone or cloud mode. Standalone is simpler, but I seem to be having better luck running in cloud mode - even though I'm only using a single server/core/shard/collection/whatever.
I've attached my config. Unzip this somewhere convenient - I will assume "/tmp/solr-dovecot". You may want to tweak it - this is adapted from my version 4 config and is set for English. If you look in solrbasedir/example/files/conf/lang or /solrbasedir/server/solr/configsets/basic_configs/conf/lang you'll find alternatives for "stopwords.txt" - I simply copied the "stopwords_en.txt" file directly to "conf/stopwords.txt".
Assuming you extracted the Solr distribution to a base folder, such as /opt/solr-6.4.1, change to that folder.
Then execute (again, /tmp/solr-dovecot is the path you extracted my config into):
bin/solr create_collection -c dovecot -d /tmp/solr-dovecot
That should create a minimal cloud instance. Then start it:
bin/solr start -c
And hopefully...you'll have a running Solr server. Assuming that's the case - since you've now created a "named" collection you have to specify that for Dovecot. So the fts_solr parameter in 90-plugin.conf needs to be something like:
fts_solr = break-imap-search url=http://ser.ver.ip:8983/solr/dovecot/
Restart Dovecot...and with luck you're searching now.
Hope this helps somebody!
Daniel
On 2/10/2017 3:15 PM, Daniel Miller wrote:
participants (1)
-
Daniel Miller