Skip to content

Sphinx Reindex #12

@bmv234

Description

@bmv234

I has the following issue:

Some Linux distributions (notably Debian and Ubuntu) have a daily cron job to reindex everything. Unfortunately this ruins the sphinx index files piler relies on. However the older emails are not lost you still have them, they are just disappeared from the sphinx index. To bring them back, perform the following steps.

Edit /etc/default/sphinxsearch, and set START=“no”.

I recommend you to use the piler shipped init.d/rc.searchd script to start searchd. You may call it from /etc/rc.local. (Note that it starts it as user piler, so make sure /var/piler/sphinx has proper ownership.)

Reindex old emails. After that older emails should appear after the next indexing is done.

cd /tmp

reindex -a

My question is since this is in a Docker container, do you happen to know where the '/etc/default/sphinxsearch' location is and what all needs to be modified to resolve this issue. I search from the sphinxsearch location and couldn't find it. I had to reindex to get old emails to show back up in search, but I have not made the proper modifications to keep this from happening again. Any suggestions? Running Ubuntu 18.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions