sphinx/coreseek 搜索服务器配置conf

source complexsearchMain
{
	type					= mysql
	sql_host				= 192.168.1.112
	sql_user				= root
	sql_pass				= xx
	sql_db					= house_complex_search
	sql_port				= 3306	# optional, default is 3306

	sql_query_pre			= SET NAMES utf8
	sql_query_pre			= SET SESSION query_cache_type=OFF
	sql_query_pre = REPLACE INTO sph_counter SELECT 1,MAX(id) FROM house_complex 

	sql_query_range	= SELECT MIN(id),MAX(id) FROM house_complex
    sql_range_step = 1000
    sql_query = SELECT id,title,content,type,cityCode,releaseTime FROM house_complex WHERE id>=$start AND id<=$end
	#sql_query				= SELECT id,title,content,type,cityCode,releaseTime from house_complex WHERE id<=( SELECT max_doc_id FROM sph_counter WHERE counter_id=1 ) 

	sql_ranged_throttle	= 0
	sql_query_info		= SELECT * FROM house_complex WHERE id=$id
	sql_attr_uint = type
	sql_attr_uint = cityCode
	sql_attr_timestamp        = releaseTime
	mlock = 1
}


source complexsearchDelta : complexsearchMain
{
	sql_ranged_throttle			= 100
	sql_query_pre       = SET NAMES utf8         
	sql_query_pre       = SET SESSION query_cache_type=OFF           
	sql_query           = SELECT id,title,content,type,cityCode from house_complex WHERE id>=( SELECT max_doc_id FROM sph_counter WHERE counter_id=1 )   
	sql_attr_uint = type
	sql_attr_uint = cityCode
	sql_attr_timestamp        = releaseTime
	#sql_attr_uint        = pid
}

index complexsearchIndex
{
	source			= complexsearchMain
	path			= /usr/local/coreseek/var/data/complexsearchIndex
	docinfo			= extern
	mlock			= 0

	morphology		= none
	min_word_len		= 2
	charset_type		= zh_cn.utf-8
	charset_dictpath = /usr/local/mmseg3/etc/
	#停止词使用
	#stopwords = /usr/local/sphinx/data/stopwords.txt 
	#charset_table		= 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F
	#ngram_len				= 0
	#ngram_chars			= U+3000..U+2FA1F
	html_strip				= 0
}

index complexsearchIndexDelta : complexsearchIndex
{
	path			 = /usr/local/coreseek/var/data/complexsearchIndexDelta
	source           = complexsearchDelta
	charset_type     = utf-8
}


index dist1
{
	
}



indexer
{	
	mem_limit			= 256M
}


searchd
{
	port				= 3326

	log					= /usr/local/coreseek/var/log/mallgoods.log
	
	query_log			= /usr/local/coreseek/var/log/mallgoods.log

	read_timeout		= 5

	max_children		= 30

	pid_file			= /usr/local/coreseek/var/log/mallgoods.pid

	max_matches			= 1000

	preopen_indexes		= 0

	unlink_old			= 1
}



你可能感兴趣的:(sphinx/coreseek 搜索服务器配置conf)