D
D
Dmitry Sidorenko2015-11-03 18:17:45
PHP
Dmitry Sidorenko, 2015-11-03 18:17:45

Why does sphinx only work in console (client version is higher than daemon version)?

Centos 7
Linux 3.10.0-229.14.1.el7.x86_64 Sphinx 2.1.5- id64
-release (rel21- r4508
) than daemon version (client is v.1.30, daemon is v.1.29) But if you write to the console, then everything works
search supra

using config file '/etc/sphinx/sphinx.conf'...
index 'test1': query 'supra ': returned 294 matches of 294 total in 0.000 sec

displaying matches:
1. document=1754, weight=3659, id_old=Thu Jan  1 05:00:37 1970
2. document=1757, weight=3659, id_old=Thu Jan  1 05:00:35 1970
...

Just in case, I will give the sphinx config
#
# Minimal Sphinx configuration sample (clean, simple, functional)
#

source src1
{
        type                    = mysql

        sql_host                = localhost
        sql_user                = xxx
        sql_pass                = xxx
        sql_db                  = xxx
        sql_port                = 3306  # optional, default is 3306

        sql_query       = SELECT id_product, id_old, model, UNIX_TIMESTAMP(create_time) AS date_added, seo_name, full_description FROM products
        sql_attr_uint           = id_product
        sql_attr_timestamp      = id_product
}


index test1
{
        source                  = src1
        path                    = /var/lib/sphinx/test1
        docinfo                 = extern
        charset_type            = sbcs
}

indexer
{
        mem_limit               = 32M
}


searchd
{
        listen = 127.0.0.1:3312
        log                     = /var/log/sphinx/searchd.log
        query_log               = /var/log/sphinx/query.log
        read_timeout            = 5
        max_children            = 30
        pid_file                = /etc/init.d/sphinxsearch

        max_matches             = 1000
        seamless_rotate         = 1
        preopen_indexes         = 1
        unlink_old              = 1
        workers                 = threads # for RT to work
        binlog_path             = /var/lib/sphinx
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Sidorenko, 2015-11-03
@sidorenkoda

Decided on my own.
Centos has the version of sphinx delivered via yum = 2.1.5-
Therefore, you need to download sphinxapi from here
sphinxsearch.com/downloads/sphinx-2.1.5-release.ta...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question