similarJ / sphinx-for-chinese

Automatically exported from code.google.com/p/sphinx-for-chinese
0 stars 0 forks source link

ERROR: unknown key name 'chinese_dictionary' #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
# pwd
/usr/local/sphinxcn

# ./bin/mkdict /root/Downloads/sphinx/xdict_1.1.txt etc/xdict

# vi etc/sphinx.conf
source src1
{
 ......
 ......
 chinese_dictionary      = /usr/local/sphinxcn/etc/xdict
}

# ./bin/indexer --all
sphinx-for-chinese 2.1.0-dev (r3361)
Copyright (c) 2008-2012, sphinx-search.com

using config file '/usr/local/sphinxcn/etc/sphinx.conf'...
ERROR: unknown key name 'chinese_dictionary' in 
/usr/local/sphinxcn/etc/sphinx.conf line 24 col 20.
FATAL: failed to parse config file '/usr/local/sphinxcn/etc/sphinx.conf'

Original issue reported on code.google.com by Uea...@gmail.com on 2 Nov 2012 at 9:20

GoogleCodeExporter commented 8 years ago
Oh, sorry. Should be in index block.

Original comment by Uea...@gmail.com on 18 Nov 2012 at 6:18

GoogleCodeExporter commented 8 years ago
index w596_vfull_index
{
    source          = w596_vfull_src
    path            = /usr/local/var/data/w596_vfull_index

    chinese_dictionary = /usr/local/sphinx-for-chinese/etc/xdict
    charset_type     = utf-8
}

但是
$ indexer -c sphinx-w596.conf --all
using config file 'sphinx-w596.conf'...
ERROR: unknown key name 'chinese_dictionary' in sphinx-w596.conf line 67 col 23.
FATAL: failed to parse config file 'sphinx-w596.conf'

Original comment by baocaixi...@gmail.com on 30 Dec 2014 at 6:49