A
A
Argenon2021-03-05 15:18:41
Sphinx
Argenon, 2021-03-05 15:18:41

How to setup Plain index in Manticore Search server?

I decided to try to start a Manticore Search server here. According to instructions.
I installed it from the package because the repository didn't want to work `manticore_3.5.4-201211-13f8d08_amd64.deb`
I started `systemctl start manticore` The service started.

I tried to work with Real-time index. Created the table wrote down something there, found - plows.
Decided to set up Plain index. Added config:
`manticore.conf`

source source
{
  type             = pgsql
  sql_host         = localhost
  sql_user         = user
  sql_pass         = pass
  sql_db           = db
  sql_query        = SELECT id, name FROM products
  sql_attr_uint    = id
  sql_field_string = name
}

index idx
{
  type   = plain
  source = source
  path   = /var/lib/manticore/idx/
}

searchd
{
    listen = 127.0.0.1:9312
    listen = 127.0.0.1:9306:mysql
    listen = 127.0.0.1:9308:http
    log = /var/log/manticore/searchd.log
    query_log = /var/log/manticore/query.log
    pid_file = /var/run/manticore/searchd.pid
    data_dir = /var/lib/manticore
    query_log_format = sphinxql
}


And after restarting the manticore, something did not want to start:

мар 05 18:58:35 systemd[1]: manticore.service: Start request repeated too quickly.
мар 05 18:58:35 systemd[1]: Failed to start Manticore Search Engine.
-- Subject: Ошибка юнита manticore.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Произошел сбой юнита manticore.service.
-- 
-- Результат: failed.
мар 05 18:58:35 systemd[1]: manticore.service: Unit entered failed state.
мар 05 18:58:35 systemd[1]: manticore.service: Failed with result 'start-limit-hit'.


If you move part of the configuration to a separate file, then indexer connects to the database and creates an index:
source source
{
  type             = pgsql
  sql_host         = localhost
  sql_user         = user
  sql_pass         = pass
  sql_db           = db
  sql_query        = SELECT id, name FROM products
  sql_attr_uint    = id
  sql_field_string = name
}

index idx
{
  type   = plain
  source = source
  path   = /var/lib/manticore/idx/
}

Where can I see why she does not want to start?
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Argenon, 2021-03-05
@Argenon

Found errors in syslog

FATAL: 'data_dir' cannot be mixed with index declarations in '/etc/manticoresearch/manticore.conf'
FATAL: failed to open '/var/data/binlog.lock': 2 'No such file or directory

fixed - started

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question