Answer the question
In order to leave comments, you need to log in
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-sphinx
to work with him.
In the model, the minimum prescribed
define_index
indexes :name
end
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question