config.properties 1.99 KB
#redis
redis.proxy.address=192.168.102.211
redis.proxy.port=6379
redis.proxy.auth=
redis.readonly.proxy.address=192.168.102.211
redis.readonly.proxy.port=6379
redis.readonly.proxy.auth=

#redis notsync
redis.notsync.twemproxy.addresses=192.168.102.211:6379
redis.notsync.twemproxy.auth=

#big data redis
bigDataRedis-search.proxy.address=test-bigdata-redis-1903805580.cn-north-1.elb.amazonaws.com.cn
bigDataRedis-search.proxy.port=6379
bigDataRedis-search.proxy.auth=

#search redis
redis.search.proxy.address =192.168.102.211
redis.search.proxy.port =6379
redis.search.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
search.minimum.should.match=75%
search.operator=and
search.default.field=brandName.brandName_lowercase^2500,smallSort^1000,smallSort.smallSort_pinyin^1000,middleSort^950,middleSort.middleSort_pinyin^950,maxSort^900,maxSort.maxSort_pinyin^900,brandName^900,brandNameCn^850,brandNameCn.brandNameCn_pinyin^850,brandNameEn^800,brandDomain^800,specialSearchField^700,productName.productName_ansj^300,standardOnlyNames.standardOnlyNames_pinyin^250,standardOnlyNames.standardOnlyNames_ansj^250,productKeyword^50,brandKeyword^30,genderS^20,salesPhrase^50,marketPhrase^50,searchField_ansj^10,searchField,productSkn.productSkn_ansj,,productSkn.productSkn_ik
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
search.cache.type=redisCache

search.personalized.switch=true
search.personalized.max.should=20
#search.cache.type=ehCache

tpl.adaptor.valid=true

#zkAddress
zkAddress=192.168.102.216:2181

#web.context
web.context=yohosearch

search.multiMatchQuery.type=CROSS_FIELDS

search.open.downgrade=true