Wednesday, April 6, 2011

Sphinx: Unknown local index error

One possible source of the unknown local index error generated by Sphinx is a mismatch in the index definition section. It seems as if the name of the index must be the same as the destination name of the path to the index.

So if the index is defined as

#############################################################################
## index definition
#############################################################################

# local index example
#
# this is an index which is stored locally in the filesystem
#
# all indexing-time options (such as morphology and charsets)
# are configured per local index

index musicReviews {


Then the path should be:

path = /path/to/index/data/musicReviews

No comments: