I am trying to get Thinking Sphinx running. See snippet below. I
receive an error message stating that "no sources found in config file".
I cannot find any information on the thinking sphinx site on what this
problem means.
I believe in sphinx terminology 'sources' means 'indexes'. I did add a
define_index block to one model before I ran the rake index task.
I am trying to get Thinking Sphinx running. See snippet below. I
receive an error message stating that "no sources found in config
file".
I cannot find any information on the thinking sphinx site on what this
problem means.
I believe in sphinx terminology 'sources' means 'indexes'. I did
add a
define_index block to one model before I ran the rake index task.
I don't know thinking sphinx, but sphinx itself has both sources and
indexes (an index is composed of one of more sources).
i notice it does not have any sources or indexes, what i guess i don't
understand is how to generate them; i thought by adding the define_index
block and then running ts:in, that it would generate, no?
Hi Ryan, I just tried that. The conf file and the error messages are
the same. I deleted the conf file and ran the rake configure task but
same issues.
ThinkingSphinx uses a YAML configuration file. I'm not sure where
you're putting this conf file, but TS won't use it. ThinkingSphinx
doesn't require the YAML config file IIRC, you only need it if you
want to change TS's defaults.
ThinkingSphinx will also only index things you tell it to index. You
tell it to index things with a define_index block in the model. If TS
isn't indexing anything and you try to run the indexer, it will
probably complain.
Add your define_index blocks, run rake ts:config, run rake ts:in and
run rake ts:daemon:start