Coreseek®  
 | 首页 | 注册 | 回复 | 搜索 | 统计资料 |                 网站首页产品服务开放源码安装使用常见问题中文手册社区交流联系我们 
全文检索 论坛首页 / 全文检索 /

我安装的是coreseek-3.2.13,但是用mysql数据源,创建索引的时候,总出错误,请

 
reboot
会员
#1 | 发表时间: 2010 08 25 17:05
回复 
当在创建索引的时候,

执行的时候,在bin下面执行:indexer -c ../etc/csft.conf mysql
提示的错误是:FATAL: failed to open var/data/mysql.spl: No such file or directory, will not index. Try --rotate option.
xyliufeng
会员
#2 | 发表时间: 2010 08 25 17:23
回复 
索引部分配置有问题

把名称统一试试
reboot
会员
#3 | 发表时间: 2010 08 25 17:38
回复 
#源定义
source src1
{
    type                    = mysql

    sql_host                = localhost
    sql_user                = root
    sql_pass                = ******
    sql_db                    = test
    sql_port                = 3306
    sql_query_pre            = SET NAMES utf8

    sql_query                = SELECT tid,fid,iconid,typeid,sortid,readperm,price,author,authorid,subject,dateline,lastpost,lastposter,views,replies FROM cdb_threads
    #SELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content FROM documents
                                            #sql_query第一列id需为整数
                                            #title、content作为字符串/文本字段,被全文索引
    sql_attr_uint            = fid            #从SQL读取到的值必须为整数
    sql_attr_timestamp        = dateline      #从SQL读取到的值必须为整数,作为时间属性

    sql_query_info            = SELECT * FROM cdb_threads WHERE tid=$tid  #命令行查询时,从数据库读取原始数据信息
}

#index定义
index test
{
    source            = src1             #对应的source名称
    path            = E:/www/coreseek/var/data/test
    docinfo            = extern
    mlock            = 0
    morphology        = none
    min_word_len        = 1
    html_strip                = 0
    #charset_dictpath = /usr/local/mmseg3/etc/    #BSD、Linux环境下设置,/符号结尾
    charset_dictpath = etc/                        #Windows环境下设置,/符号结尾
    charset_type        = zh_cn.utf-8
}

#全局index定义
indexer
{
    mem_limit            = 128M
}

#searchd服务定义
searchd
{
    listen                  =   9312
    read_timeout        = 5
    max_children        = 30
    max_matches            = 1000
    seamless_rotate        = 0
    preopen_indexes        = 0
    unlink_old            = 1
    pid_file = E:/www/coreseek/var/log/searchd_mysql.pid
    log = E:/www/coreseek/var/log/searchd_mysql.log
    query_log = E:/www/coreseek/var/log/query_mysql.log
}




以上是配置文件

执行创建索引命令,提示:
using config file '../etc/csft.conf'...
indexing index 'test'...
Unigram dictionary load Error
reboot
会员
#4 | 发表时间: 2010 08 25 17:43
回复 
并且弹出 indexer.exe 应用程序错误
HonestQiao
会员
#5 | 发表时间: 2010 08 25 17:47
回复 
请参考本页面顶部导航栏的“安装使用”操作。
reboot
会员
#6 | 发表时间: 2010 08 25 17:51
回复 
谢谢!
reboot
会员
#7 | 发表时间: 2010 08 25 17:57
回复 
偶就是参考上面的文档做的,就修改了一下config文件,其他都没有操作,

如果执行:indexer -c ../etc/csft.conf   这个命令的话,就没有问题

但是执行:indexer -c ../etc/csft.conf --all    就会出现上面的错误


希望遇到这种情况的朋友解惑,非常感谢!
HonestQiao
会员
#8 | 发表时间: 2010 08 25 20:32
回复 
请不要擅自修改操作步骤,除非你自己熟悉或者知道怎么做。

例如:
##三、coreseek中文全文检索测试
##可直接执行test.cmd测试,或者:
##打开win32命令行
#cd coreseek-3.2.13-win32
#bin\indexer -c etc\csft.conf
eric
会员
#9 | 发表时间: 2010 12 22 01:54
回复 
遇到同样的问题了:
FATAL: failed to open var/data/mysql.spl: No such file or directory, will not index. Try --rotate option.

修改csft.conf中的path,变为绝对路径即可,如:
path                    = /usr/local/coreseek/var/data/mysql
HonestQiao
会员
#10 | 发表时间: 2010 12 23 00:34
回复 
 
回复
Bold Style  Italic Style  Image 链接  URL 链接 
发帖注意:
  • 网址中请去掉http://开头,例如:您需要输入www.coreseek.cn,而不是http://www.coreseek.cn
  • 咨询问题,请贴出详细的操作系统版本、Coreseek版本(Linux环境请给出编译参数)
  • 请仔细查看中文手册和本站安装指南,确认操作正确
  • 请仔细查看常见问题解答,也许你的问题已经有解决方法

» 帐号  » 密码 
发帖前请登陆, 或者 注册 .