[Dovecot] testing fts-solr?
kfx
kadafax at gmail.com
Tue Feb 28 16:47:53 EET 2012
On 02/28/2012 03:23 PM, Charles Marcus wrote:
> On 2012-02-28 8:41 AM, kfx <kadafax at gmail.com> wrote:
>> Dovecot 2.1.1 and latest solr. Indexing seems ok because the size of the
>> solr's data directory is growing and log shows things like this:
>>
>> Feb 28 14:30:45 indexer-worker(username): Info: Indexed 12239 messages
>> in SubFolder
>>
>>
>> but thunderbird returns nothing (it says not match found for "hello"
>> for example).
>
> *How* are you testing with Thunderbird?
>
> Did you enable the 'Run search on server' option in the Advanced Search
> window? Doing this *should* result in Thunderbird using dovecots indexes
> server side.
>
Yes I did.
Some more info:
by telnet'ing directly and issuing:
c search text pattern
* SEARCH 1208
c OK Search completed (0.003 secs).
But the same search in thunderbird return "No matches found" :(
Here are the solr logs, first search is the "c search text pattern"
second is from thunderbird:
Feb 28, 2012 3:26:21 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select
params={fl=uid,score&sort=uid+asc&fq=%2Bbox:d8f5c7250ed14c4f1a5d00003ea484a8+%2Buser:"username"&q=(hdr:"pattern"+OR+body:"pattern")&rows=108227}
hits=1 status=0 QTime=1
Feb 28, 2012 3:27:49 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select
params={fl=uid,score&sort=uid+asc&fq=%2Bbox:d8f5c7250ed14c4f1a5d00003ea484a8+%2Buser:"username"&q=body:"pattern"&rows=108227}
hits=0 status=0 QTime=1
It seems thunderbird is only searching in the body and not the header
unlike the "c search text" method and that the pattern was found in the
header of some random email. So none of the two method is working when
searching in the body of the emails but work for the headers (???).
fts_solr module seems to be correctly launched:
Feb 28 15:07:53 imap: Debug: Module loaded:
/usr/local/lib/dovecot/lib20_fts_plugin.so
Feb 28 15:07:53 imap: Debug: Module loaded:
/usr/local/lib/dovecot/lib21_fts_solr_plugin.so
[root at server log]# grep -R mail_plugins /usr/local/etc/dovecot/ | grep -v \#
/usr/local/etc/dovecot/conf.d/10-mail.conf:mail_plugins = autocreate fts
fts_solr quota
/usr/local/etc/dovecot/conf.d/15-lda.conf: mail_plugins = $mail_plugins
sieve
[root at server log]# grep fts /usr/local/etc/dovecot/conf.d/90-plugin.conf
fts = solr
fts_solr = url=http://127.0.0.1:8983/solr/ break-imap-search
Don't know where to search :(
More information about the dovecot
mailing list