config.properties
1.3 KB
#redis
redis.proxy.address=${redis.proxy.address}
redis.proxy.port=${redis.proxy.port}
redis.proxy.auth=${redis.proxy.auth}
redis.readonly.proxy.address=${redis.readonly.proxy.address}
redis.readonly.proxy.port=${redis.readonly.proxy.port}
redis.readonly.proxy.auth=${redis.readonly.proxy.auth}
#es.cluster
search.es.cluster.name=${search.es.cluster.name}
search.es.servers=${search.es.servers}
search.index.number_of_replicas=${search.index.number_of_replicas}
search.index.refresh_interval=${search.index.refresh_interval}
search.index.translog.flush_threshold_ops=${search.index.translog.flush_threshold_ops}
#search
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,brandKeyword^50,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=${zkAddress}
#web.content
web.context=yohosearch