config.properties
1.18 KB
#redis
redis.proxy.address=192.168.50.69
redis.proxy.port=6379
redis.proxy.auth=
redis.readonly.proxy.address=192.168.50.69
redis.readonly.proxy.port=6379
redis.readonly.proxy.auth=
#search
search.es.cluster.name=yohosearch_test
search.es.servers=192.168.102.209:9300 192.168.102.216:9300
search.index.number_of_replicas=1
search.index.refresh_interval=1
search.index.translog.flush_threshold_ops=5000
search.index.batch.limit=5000
search.index.batch.limit.tbl=2000
search.index.batch.max.thread.size=10
search.minimum.should.match=75%
search.operator=and
search.default.field=productName_ansj^10,brandName^500,brandDomain^100,brandNameCn^100,brandNameEn^100,maxSort^300,middleSort^500,smallSort^1000,searchField_ansj,productSkn_ansj,brandNameCn_pinyin^100,maxSort_pinyin^300,middleSort_pinyin^500,smallSort_pinyin^1000,productKeyword^500,searchField
search.script.score=_score+doc['sortWeight'].value*0.003+(100-doc['breakingRate'].value)/100 * doc['salesWithDateDiff'].value/pow((now-doc['shelveTime'].value)/3600+2,1.8)
search.script.lang=groovy
search.use.cache=true
tpl.adaptor.valid=true
#zkAddress
zkAddress=192.168.102.205:2181
#web.content
web.context=yohosearch