search coreseek index
#增量索引source main{ type = mysql sql_host = 127.0.0.1 sql_user = root sql_pass = 123456 sql_db = reports sql_port = 3306 sql_query_pre = SET NAMES utf8 sql_query_pre = replace into sph_counter select 1,max(id) from search sql_query_range = select 1,max(id) from search sql_range_step = 1000 sql_query = SELECT id,year_id,abstract,keywords,comments,create_time FROM search where id>=$start and id =$start and id
当我建立索引执行命令coreseek/bin/indexer -c etc/search.conf --all后索引建立成功包括主索引和增量索引,启动服务,查询不出结果,添加记录,执行更新增量索引,在查询可以查询到新增的记录,怎么回事,求帮助~~~~~~~回复讨论(解决方案)
和这个人的一样http://bbs.csdn.net/topics/360094828,他解决了没有贴出方法
和这个人的一样http://bbs.csdn.net/topics/360094828,他解决了没有贴出方法
====================================================================
问题在于你的主索引和增量索引的生成地址是一样的.
*****
把增量索引的path = d:/www/ceshi/coreseek/var/data/main改成别的名字就可以了
=====================================================================
#index定义
index main
{
source = main
path = d:/www/ceshi/coreseek/var/data/main
docinfo = extern
mlock = 0
morphology = none
min_word_len = 1
html_strip = 0
charset_dictpath = d:/www/ceshi/coreseek/etc/
charset_type = zh_cn.utf-8
}
index delta : main
{
source = delta
path = d:/www/ceshi/coreseek/var/data/main
}
已抢27239个
抢已抢14546个
抢已抢7393个
抢已抢9070个
抢已抢18347个
抢已抢7120个
抢