Thinking-Sphinx ничего не индексирует

Моя среда:

Mac OSX 10.6 Snow Leopard
Ruby 1.9.2p0
Rails 3.0.0
thinking-sphinx (2.0.0.rc1)
Sphinx 0.9.9-release (r2117)

Пока что я действительно не смог заставить что-либо работать.

pma:log pma$ rake thinking_sphinx:index
(in /Users/pma/Sites/urban-ent)
DEPRECATION WARNING: Rake tasks in /Users/pma/Sites/urban-ent/vendor/plugins/yaml_db/tasks/yaml_db_tasks.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /Users/pma/Sites/urban-ent/Rakefile:7)
Generating Configuration to /Users/pma/Sites/urban-ent/config/development.sphinx.conf
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/Users/pma/Sites/urban-ent/config/development.sphinx.conf'...
FATAL: no indexes found in config file '/Users/pma/Sites/urban-ent/config/development.sphinx.conf'

pma:urban-ent pma$ rake thinking_sphinx:rebuild
(in /Users/pma/Sites/urban-ent)
DEPRECATION WARNING: Rake tasks in /Users/pma/Sites/urban-ent/vendor/plugins/yaml_db/tasks/yaml_db_tasks.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /Users/pma/Sites/urban-ent/Rakefile:7)
Generating Configuration to /Users/pma/Sites/urban-ent/config/development.sphinx.conf
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/Users/pma/Sites/urban-ent/config/development.sphinx.conf'...
FATAL: no indexes found in config file '/Users/pma/Sites/urban-ent/config/development.sphinx.conf'
Failed to start searchd daemon. Check /Users/pma/Sites/urban-ent/log/searchd.log.
Failed to start searchd daemon. Check /Users/pma/Sites/urban-ent/log/searchd.log

Журнал searchd.log пуст. В него ничего не записывается.

pma:log pma$ ls -l
total 3312
-rw-rw-rw-@ 1 pma  staff  1694487 Sep  8 15:17 development.log
-rw-rw-rw-  1 pma  staff        0 Sep  7 14:57 production.log
-rw-rw-rw-  1 pma  staff        0 Sep  7 17:39 searchd.log
-rw-rw-rw-  1 pma  staff        0 Sep  7 14:57 server.log
-rw-rw-rw-  1 pma  staff        0 Sep  7 14:58 test.log
pma:log pma$ 

У меня есть индексы, определенные в модели в app / models /struction.rb

define index do
  indexes title
  indexes description
end

Однако они, похоже, полностью игнорируются.

Кого-нибудь решения?


person fivetwentysix    schedule 08.09.2010    source источник


Ответы (1)


Не уверен, что это опечатка, но define index должно быть define_index

person zetetic    schedule 08.09.2010