[Dovecot] Possible broken indexer(lucene/solr)?
Hello,
try to use the new 2.1rc and don't get any data in the searchindex.
Tried first lucene, and switched than back so solr.
If I do an search in an mailfolder, i get in the dovecot-log
2012-02-06 22:17:11 | dovecot: | indexer-worker(xxxxxx): Indexed 0 messages in INBOX/dovecot
Log from solr. Feb 6, 2012 10:17:11 PM org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={fl=uid,score&sort=uid+asc&fq=%2Bbox:120ed10bbe9dcd4c8d2e0000f8146a47+%2Buser:"xxxxxxx"&q=body:"solr"&rows=9159} hits=0 status=0 QTime=1
Maybe I miss something. Upgraded from 2.0.15 to 2.1(head from repository yesterday) With 2.0 i see, if i start an search, solr had to work on the mail, now happens nothing. Upgrade the schema.xml, delete the old index.
Regard Ingo Thierack
Le 06/02/12 22:26, Ingo Thierack a écrit :
Hello,
try to use the new 2.1rc and don't get any data in the searchindex.
Tried first lucene, and switched than back so solr.
If I do an search in an mailfolder, i get in the dovecot-log
2012-02-06 22:17:11 | dovecot: | indexer-worker(xxxxxx): Indexed 0 messages in INBOX/dovecot
Log from solr. Feb 6, 2012 10:17:11 PM org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={fl=uid,score&sort=uid+asc&fq=%2Bbox:120ed10bbe9dcd4c8d2e0000f8146a47+%2Buser:"xxxxxxx"&q=body:"solr"&rows=9159} hits=0 status=0 QTime=1
Maybe I miss something. Upgraded from 2.0.15 to 2.1(head from repository yesterday) With 2.0 i see, if i start an search, solr had to work on the mail, now happens nothing. Upgrade the schema.xml, delete the old index.
Regard Ingo Thierack Same thing here. Tried with 2.1-rc1 and rc5. No results.
On 6.2.2012, at 23.26, Ingo Thierack wrote:
try to use the new 2.1rc and don't get any data in the searchindex.
Tried first lucene, and switched than back so solr.
Lucene should work..
Maybe I miss something. Upgraded from 2.0.15 to 2.1(head from repository yesterday) With 2.0 i see, if i start an search, solr had to work on the mail, now happens nothing. Upgrade the schema.xml, delete the old index.
You mean you deleted Solr index, so that it's empty? That should work too.
Anyway, in v2.1 Dovecot keeps track of what is the last indexed message in dovecot.index files. So if you're switching between backends or have messed things up in tests, you need to run "doveadm fts rescan" (for each user).
You mean you deleted Solr index, so that it's empty? That should work too.
Anyway, in v2.1 Dovecot keeps track of what is the last indexed message in dovecot.index files. So if you're switching between backends or have messed things up in tests, you need to run "doveadm fts rescan" (for each user).
# doveadm(root): Fatal: Unknown command 'fts', but plugin fts exists. Try to set mail_plugins=fts
I get this, despite having fts + fts_solr defined in 20-imap.conf as recommended with the following plugin format stanza:
plugin { fts = solr fts_solr = break-imap-search url=http://solrhost:8983/solr/ }
Should I be adding fts/fts_solr to the global mail_plugins setting?
I have Solr up and running, without any firewalling between the hosts, and it never seems to even try to use it.
The logs show, even after importing fresh mail and issuing a "search text "your" command to the server, which takes it about 5m or so to return results.
I see the following in the log:
Feb 16 17:51:54 indexer-worker(testuser): Info: Indexed 0 messages in INBOX2010
GET /solr/ issued to http://solrhost:8983/ via TELNET reports A-OK, and Solr Admin shows ready status when the admin console is loaded into a web browser. I can see there is ZERO traffic between the hosts during the SEARCH text command's execution, though I can see an open connection to the solr host in netstat:
tcp 0 0 linuxcode:56393 solrhost:8983 ESTABLISHED
=R=
On 17.2.2012, at 4.46, Robin wrote:
You mean you deleted Solr index, so that it's empty? That should work too.
Anyway, in v2.1 Dovecot keeps track of what is the last indexed message in dovecot.index files. So if you're switching between backends or have messed things up in tests, you need to run "doveadm fts rescan" (for each user).
# doveadm(root): Fatal: Unknown command 'fts', but plugin fts exists. Try to set mail_plugins=fts
I get this, despite having fts + fts_solr defined in 20-imap.conf as recommended with the following plugin format stanza:
plugin { fts = solr fts_solr = break-imap-search url=http://solrhost:8983/solr/ }
Plugin settings don't do anything if plugin isn't enabled. And if you enabled it only for imap, then it works only in imap and not in pop3/lda/doveadm/etc..
Should I be adding fts/fts_solr to the global mail_plugins setting?
Yes. Probably fixes all your troubles.
participants (4)
-
Ingo Thierack
-
manuel.bertrand@gmail.com
-
Robin
-
Timo Sirainen