config.properties
1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#redis
redis.proxy.address=192.168.102.12
redis.proxy.port=6379
redis.proxy.auth=
redis.readonly.proxy.address=192.168.102.12
redis.readonly.proxy.port=6379
redis.readonly.proxy.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=
#es.cluster
search.es.cluster.name = yohosearch
search.es.servers = 192.168.102.12:9300 192.168.102.13:9300
search.index.number_of_replicas = 0
search.index.refresh_interval = 1
search.index.translog.flush_threshold_ops = 5000
#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.multiMatchQuery.type=CROSS_FIELDS
##tpl adaptor
tpl.adaptor.valid = false
##search.use.cache
search.use.cache = false
#zkAddress
zkAddress = 192.168.102.205:2181
#web.content
web.context=yohosearch