Monday, February 28, 2011

Sphinx: A dumb newbie error

When first creating the index for my data on Sphinx, I made a mistake. I ran the command:

./indexer --config /path/to/conf/sphinx.conf --rotate --all

The result?

Files (data indexes) were created in the var/data directory. When I tried to search the indexes from the command line, no results were returned.

The solution was to run the command as follows:

./indexer --config /path/to/conf/sphinx.conf --all

I believe the rotate flag only applies when an index already exists and it is being updated.

No comments: