Re: Dovecot and Solr 6

2016-08-05 Thread Daniel Miller

On 7/7/2016 2:31 PM, KSB wrote:

On 2016.07.06. 22:51, KSB wrote:

Hi!
Dovecot 2.2.24
Had set up solr and new schema collection. Copied dovecot provided
schema. There was an error with booleans (while getting schema via
http), which I "solved" by removing "add-unknown-fields-to-the-schema"
from solrconfig.xml. It is correct way to solve this?
Anyway, I run tcpdump to see network activity between dovecot and solr:
#tcpdump -i lo port 8983
and see nothing while doing:
#doveadm fts rescan -u usern...@domain.tld
no output also from doveadm.

Noticed that dovecot.index.log reapears in user mail root if deleted.

plugin {
  fts = solr
  fts_solr = url=http://localhost:8983/solr/dovecot/ debug
  ..
}

--
KSB


After some fiddling around, come in to conclusion that doveadm fts 
rescan is nothing to do about real indexing. So, it is working.
Anyway, now thinking about what really differs when fts is used vs not 
used. 1 argument is speed, what else?


--
KSB
"doveadm fts rescan" resets pointers but does not itself trigger a 
re-index.  But it makes the next actual index scan the full mailbox.


The whole point of FTS is "full-text-search".  So if you don't use it - 
you don't need it.  But when large mailboxes are involved, searches 
involving solr indexes are extremely fast compared to non-fts searches.


--
Daniel


Re: Dovecot and Solr 6

2016-07-08 Thread KSB

On 2016.07.08. 4:22, Zhang Huangbin wrote:



On Jul 8, 2016, at 5:31 AM, KSB  wrote:

1 argument is speed, what else?


Solr is built for indexing, what else do you expect?



Stemming for example, but it's not critical anyway, as my language doe's 
not have publicly available stemming dictionary/algorithm.


--
KSB


Re: Dovecot and Solr 6

2016-07-07 Thread Zhang Huangbin

> On Jul 8, 2016, at 5:31 AM, KSB  wrote:
> 
> 1 argument is speed, what else?

Solr is built for indexing, what else do you expect?


Re: Dovecot and Solr 6

2016-07-07 Thread KSB

On 2016.07.06. 22:51, KSB wrote:

Hi!
Dovecot 2.2.24
Had set up solr and new schema collection. Copied dovecot provided
schema. There was an error with booleans (while getting schema via
http), which I "solved" by removing "add-unknown-fields-to-the-schema"
from solrconfig.xml. It is correct way to solve this?
Anyway, I run tcpdump to see network activity between dovecot and solr:
#tcpdump -i lo port 8983
and see nothing while doing:
#doveadm fts rescan -u usern...@domain.tld
no output also from doveadm.

Noticed that dovecot.index.log reapears in user mail root if deleted.

plugin {
  fts = solr
  fts_solr = url=http://localhost:8983/solr/dovecot/ debug
  ..
}

--
KSB


After some fiddling around, come in to conclusion that doveadm fts 
rescan is nothing to do about real indexing. So, it is working.
Anyway, now thinking about what really differs when fts is used vs not 
used. 1 argument is speed, what else?


--
KSB


Dovecot and Solr 6

2016-07-06 Thread KSB

Hi!
Dovecot 2.2.24
Had set up solr and new schema collection. Copied dovecot provided 
schema. There was an error with booleans (while getting schema via 
http), which I "solved" by removing "add-unknown-fields-to-the-schema" 
from solrconfig.xml. It is correct way to solve this?

Anyway, I run tcpdump to see network activity between dovecot and solr:
#tcpdump -i lo port 8983
and see nothing while doing:
#doveadm fts rescan -u usern...@domain.tld
no output also from doveadm.

Noticed that dovecot.index.log reapears in user mail root if deleted.

plugin {
  fts = solr
  fts_solr = url=http://localhost:8983/solr/dovecot/ debug
  ..
}

--
KSB