Christian Kivalo
2019-Jul-05 20:57 UTC
Dovecot and Solr on the same server or on different
On 2019-06-21 09:18, G?tz Reinicke via dovecot wrote:> Hi Christian, > >> Am 20.06.2019 um 18:05 schrieb Christian Kivalo via dovecot >> <dovecot at dovecot.org>: >> >>> So if dovecot and Solr are good with a host each, I m fine with >>> managing two VMs. >> They do. I'm using such a setup for some years now. > > May be you you could give me some suggestions on how to proceed after > having the Solr up and running? > > What is the best procedure to move all mailbox search index from the > current (old) style to Solr? > > Like: doveadm index -A -q '*'This should do it. I did some searches. That triggers indexing when there is none.> May I adjust some Sorl defaults for memory/cahces etc to suite my > setup?Apart from min and max java mem i didn't change any solr defaults. I'm using solr 8.0.0 and setup as described in the wiki. I changed the provided schema from the wiki to support partial searches. The index grew quite a bit but it's working fine.> Thanks fro feedback and regards . G?tz-- Christian Kivalo
What changes did you make to support partial searches? On Fri, Jul 5, 2019 at 3:58 PM Christian Kivalo via dovecot < dovecot at dovecot.org> wrote:> > > On 2019-06-21 09:18, G?tz Reinicke via dovecot wrote: > > Hi Christian, > > > >> Am 20.06.2019 um 18:05 schrieb Christian Kivalo via dovecot > >> <dovecot at dovecot.org>: > >> > >>> So if dovecot and Solr are good with a host each, I m fine with > >>> managing two VMs. > >> They do. I'm using such a setup for some years now. > > > > May be you you could give me some suggestions on how to proceed after > > having the Solr up and running? > > > > What is the best procedure to move all mailbox search index from the > > current (old) style to Solr? > > > > Like: doveadm index -A -q '*' > This should do it. I did some searches. That triggers indexing when > there is none. > > May I adjust some Sorl defaults for memory/cahces etc to suite my > > setup? > Apart from min and max java mem i didn't change any solr defaults. I'm > using solr 8.0.0 and setup as described in the wiki. > I changed the provided schema from the wiki to support partial searches. > The index grew quite a bit but it's working fine. > > Thanks fro feedback and regards . G?tz > > -- > Christian Kivalo >-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx at gmail.com US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190705/b0e38392/attachment.html>
Christian Kivalo
2019-Jul-05 21:17 UTC
Dovecot and Solr on the same server or on different
On 2019-07-05 23:00, Larry Rosenman via dovecot wrote:> What changes did you make to support partial searches?added the line <filter class="solr.NGramFilterFactory" minGramSize="3" maxGramSize="15" /> after <filter class="solr.LowerCaseFilterFactory"/> to the <analyzer type="index"> block of the schema.xml from the wiki. Then remove your existing index and managed-schema, restart solr and reindex. This nearly doubled the index in size but it's worth it.> On Fri, Jul 5, 2019 at 3:58 PM Christian Kivalo via dovecot > <dovecot at dovecot.org> wrote: > >> On 2019-06-21 09:18, G?tz Reinicke via dovecot wrote: >>> Hi Christian, >>> >>>> Am 20.06.2019 um 18:05 schrieb Christian Kivalo via dovecot >>>> <dovecot at dovecot.org>: >>>> >>>>> So if dovecot and Solr are good with a host each, I m fine with >>>>> managing two VMs. >>>> They do. I'm using such a setup for some years now. >>> >>> May be you you could give me some suggestions on how to proceed >> after >>> having the Solr up and running? >>> >>> What is the best procedure to move all mailbox search index from >> the >>> current (old) style to Solr? >>> >>> Like: doveadm index -A -q '*' >> This should do it. I did some searches. That triggers indexing when >> there is none. >>> May I adjust some Sorl defaults for memory/cahces etc to suite my >>> setup? >> Apart from min and max java mem i didn't change any solr defaults. >> I'm >> using solr 8.0.0 and setup as described in the wiki. >> I changed the provided schema from the wiki to support partial >> searches. >> The index grew quite a bit but it's working fine. >>> Thanks fro feedback and regards . G?tz >> >> -- >> Christian Kivalo > > -- > > Larry Rosenman http://www.lerctr.org/~ler > Phone: +1 214-642-9640 (c) E-Mail: larryrtx at gmail.com > US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106-- Christian Kivalo