On 15/12/2019 17:13, John Gateley wrote:> Hi,
>
> I have Solr FTR working with dovecot, and need to do the commit and
> optimize recommended here:
> https://wiki.dovecot.org/Plugins/FTS/Solr
>
> Should this run as root, or as each mail user. The documentation above
> implies, but doesn't state,
> that it is root. The docs here are similar:
> http://grimore.org/networking/dovecot/full_text_search
>
> But the docs here say it has to be done for each user:
> http://www.unixsamurai.com/dovecot-full-text-search-jetty-solr/
>
> I don't know Solr well enough to answer. Which is correct?
>
> Thanks
>
> John
>
John
the optimize and commit commands don't specify any mail user in them:
# Optimize should be run somewhat rarely, e.g. once a day
curl https://<hostname/ip>:<port|default
8983>/solr/dovecot/update?optimize=true
# Commit should be run pretty often, e.g. every minute
curl https://<hostname/ip>:<port|default
8983>/solr/dovecot/update?commit=true
It doesn't actually matter which cron user you run them under so long as
that user can execute the commands successfully. The idea (if you need them) is
to run them globally under a single user.
If you schedule them under more than one cron user it is just running the same
commands more times, not doing anything specific per user.
John
0 1 * * * curl http://127.0.0.1:8080/solr/update?optimize=true 2 * * * *
curl http://127.0.0.1:8080/solr/update?commit=true
Copyright ? UnixSamurai.com Read more at:
http://www.unixsamurai.com/dovecot-full-text-search-jetty-solr/
curl http://127.0.0.1:8080/solr/update?optimize=true 2 * * * * curl
http://127.0.0.1:8080/solr/update?commit=true
Copyright ? UnixSamurai.com Read more at:
http://www.unixsamurai.com/dovecot-full-text-search-jetty-solr/
curl http://127.0.0.1:8080/solr/update?optimize=true 2 * * * * curl
http://127.0.0.1:8080/solr/update?commit=true
Copyright ? UnixSamurai.com Read more at:
http://www.unixsamurai.com/dovecot-full-text-search-jetty-solr/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20191215/9dad2855/attachment-0001.html>