On 13.04.19 22:25, L A Walsh wrote:
I note that dovecot has 3 different full text search methods one can use:
dovecot23-fts-2.3.4.1-1.1.x86_64.rpm dovecot23-fts-lucene-2.3.4.1-1.1.x86_64.rpm dovecot23-fts-solr-2.3.4.1-1.1.x86_64.rpm dovecot23-fts-squat-2.3.4.1-1.1.x86_64.rpm
Has anyone ever used any of these? I've no clue how one differs or is better than another.
Thanks, -l
Your message remembered me to try solr search in dovecot. Installation works as described here: https://wiki.dovecot.org/Plugins/FTS/Solr But you should: - Install at lease Java 8 (java-1_8_0-openjdk) - restart solr after replacing schema.xml and solrconfig.xml - Do not optimize Indexes Form here: https://wiki.apache.org/solr/SolrPerformanceFactors "You may want to optimize an index in certain situations -- ie: if you build your index once, and then never modify it. If you have a rapidly changing index, rather than optimizing, you likely simply want to use a lower merge factor. Optimizing is very expensive, and if the index is constantly changing, the slight performance boost will not last long. The tradeoff is not often worth it for a non static index. " So: don't do that. Conclusion: Search is faster. Searching the first time in a mail folder takes some time: the search index is built at first access, but then search is definitively faster.