Coreseek incremental index. The search coreseek index cannot be found after the index is created.
# Incremental 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 <= $ end and id <= (select max_doc_id from sph_counter where counter_id = 1) sources = create_time sources = comments SQL _attr_uint = year_id SQL _query_info_pre = set names utf8} source delta: main {SQL _query_pre = set names utf8 SQL _query = SELECT id, year_id, abstract, keywords, comments, create_time FROM search where id >=$ start and id <= $ end and id <= (select max_doc_id from sph_counter where counter_id = 1) SQL _query_post_index = replace into sph_counter select 1, max (id) from search} # index definition 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} # global index definition indexer {mem_limit = 512 M} # searchd service definition searchd {listen = 127.0.0.1: 9312 read_timeout = 5 max_children = 30 max_matches = 5000 bytes = 0 preopen_indexes = 0 unlink_old = 1 pid_file = d:/www/ceshi/coreseek/var/log/search_main.pid log = d: /www/ceshi/coreseek/var/log/search_main.log query_log = d:/www/ceshi/coreseek/var/log/search_query.log binlog_path =}
When I create an index, execute the command coreseek/bin/indexer-c etc/search. conf -- after all, the index is successfully created, including the primary index and incremental index. when the service is started, no results can be found, records are added, incremental indexes are updated, and new records can be queried during the query, what's going on? Please help ~~~~~~~
Reply to discussion (solution)
Just like this person, http://bbs.csdn.net/topics/360094828, and he can't solve the problem.
Just like this person, http://bbs.csdn.net/topics/360094828, and he can't solve the problem.
========================================================== ======================================
The problem is that your primary index and incremental index are generated at the same address.
*****
Change path = d:/www/ceshi/coreseek/var/data/main of the incremental index to another name.
========================================================== ==================================
# Index definition
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
}