E
E
eldar_web2017-10-28 18:30:00
Sphinx
eldar_web, 2017-10-28 18:30:00

How to properly install SphinxSearch on Rails?

Although it’s probably boring to read the question, but help if it’s not difficult, since for the third day I can’t solve a seemingly simple question!
I can't connect sphinx to a rails project in any way.
Installed sphinxsearch myself.
Installed gem thinking-sphinxto work with him.
In the model, the minimum prescribed

define_index
 indexes :name
end

I do rake ts:index - nothing happens.
Here is what is in sphinx.conf:
source src1
{
  # data source type. mandatory, no default value
  # known types are mysql, pgsql, mssql, xmlpipe, xmlpipe2, odbc
  type			= mysql

  #####################################################################
  ## SQL settings (for 'mysql' and 'pgsql' types)
  #####################################################################

  # some straightforward parameters for SQL source types
  sql_host		= localhost
  sql_user		= root
  sql_pass		= пароль БД
  sql_db	        = Название таблицы, который в проекте
  sql_port		= 3306	# optional, default is 3306

Why doesn't rake ts:index work? What is the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2017-10-29
@opium

read the materiel of a bunch of articles

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question