howto upgrade sphinx 3.1.1

Issue #991 resolved
d tbsky created an issue

Hi:

I create a test vm with piler 1.3.5 and sphinx 2.2 and throw in some mails. everything works fine. now I want to upgrade sphinx from 2.2 to 3.1.1. according to piler document http://www.mailpiler.org/wiki/current:sphinx3

I need to add “define('SPHINX_VERSION', 311);” to sphinx.conf

I don’t know where to add that line (google didn’t help me). if I add that line at head of sphinx.conf.

then result below:

/usr/bin/searchd --config /etc/piler/sphinx.conf
Sphinx 3.1.1 (commit 612d99f)
Copyright (c) 2001-2018, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com))

using config file '/etc/piler/sphinx.conf'...
ERROR: invalid section type 'define' in /etc/piler/sphinx.conf line 5 col 7.
FATAL: failed to parse config file '/etc/piler/sphinx.conf'
Segmentation fault

Comments (3)

  1. Aleksandr Savchenko

    Hi,

    Sphinx 3.1.1 support added after release 1.3.5

    Added support for sphinx-3.1.1 2019-04-22
    Released version 1.3.5 Tags piler-1.3.5 2019-04-21

    You need use Latest master branch (developer version)

    
    
  2. d tbsky reporter

    thanks for the hint!

    I thought 1.3.5 was new 🙂

    I download master branch and get the new sphinx.conf. it is mixed with php and sphinx configuration. and there are comments about sphinx 3.1.1.

    so I will wait next release for upgrade. hope reindex won’t take weeks to finish.

  3. Log in to comment