[Dovecot] fts-solr not indexing body content
This could easily be me missing something, but I can't seem to get the fts-solr plugin to index message bodies. Tcpdump shows me the following being sent from Dovecot to Solr as a messages is indexed:
<add><doc><field name="uid">6549</field><field name="box">fde08816e80d6b4f26650000b5f0b4b2</field><field name="user">user</field><field name="id">6549/fde08816e80d6b4f26650000b5f0b4b2/user</field><field name="body"> </field><field name="hdr">Return-path: ...
As you can see, the <field name="body"/>-node contains just an empty line.
The above is just a snippet to illustrate the problem. A full dump can be found at the following URL:
http://db.org/temp/solr.xml.txt
Full text search is configures such:
plugin { fts = solr fts_solr = break-imap-search url=http://127.0.0.1:8080/solr/ }
So; am I missing something, or is this a Dovecot problem?
dovecot.conf:
http://db.org/temp/dovecot.conf
Regards, Bård Johannessen
On Mon, 2012-03-26 at 18:06 +0300, Timo Sirainen wrote:
On Mon, 2012-03-26 at 15:29 +0200, Bård Johannessen wrote:
This could easily be me missing something, but I can't seem to get the fts-solr plugin to index message bodies.
What Dovecot version?
Yeah, looks no one has tried to use Solr with Dovecot v2.1 before. This should fix it:
2012/3/26 Timo Sirainen tss@iki.fi:
Yeah, looks no one has tried to use Solr with Dovecot v2.1 before. This should fix it:
Nope; exactly same result; body field contains just the empty line.
-- Bård Johannessen
On 27.3.2012, at 10.12, Bård Johannessen wrote:
2012/3/26 Timo Sirainen tss@iki.fi:
Yeah, looks no one has tried to use Solr with Dovecot v2.1 before. This should fix it:
Nope; exactly same result; body field contains just the empty line.
Always? It worked in my tests, and I don't see anything else wrong in the code..
participants (2)
-
Bård Johannessen
-
Timo Sirainen