config.properties
2.66 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#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}
#redis notsync
redis.notsync.twemproxy.addresses=${redis.notsync.twemproxy.addresses}
redis.notsync.twemproxy.auth=${redis.notsync.twemproxy.auth}
#bigData - redis servers
bigDataRedis-search.proxy.address=${bigDataRedis-search.proxy.address}
bigDataRedis-search.proxy.port=${bigDataRedis-search.proxy.port}
bigDataRedis-search.proxy.auth=${bigDataRedis-search.proxy.auth}
#search redis
redis.search.proxy.address=${redis.search.proxy.address}
redis.search.proxy.port=${redis.search.proxy.port}
redis.search.proxy.auth=${redis.search.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=3<90%
search.operator=or
search.default.field=brandName.brandName_lowercase^4000,shopName.shopName_lowercase^4000,smallSort.smallSort^1000,smallSort.smallSort_pinyin^1000,middleSort.middleSort^950,middleSort.middleSort_pinyin^950,maxSort.maxSort^900,maxSort.maxSort_pinyin^900,brandName.brandName^900,brandNameCn.brandNameCn^850,brandNameCn.brandNameCn_pinyin^850,brandNameEn^800,brandDomain^800,shopName.shopName^900,specialSearchField^700,specialSearchFieldPrice^700,specialSearchFieldVideo^700,productName.productName_ansj^300,standardOnlyNames.standardOnlyNames_pinyin^250,standardOnlyNames.standardOnlyNames_ansj^250,productKeyword^50,salesPhrase^50,marketPhrase^50,brandKeyword^30,genderS^20,searchField_ansj^10,promotionTitles^5,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=${search.cache.type}
#personalized search
search.personalized.switch=${search.personalized.switch}
search.personalized.max.should=${search.personalized.max.should}
tpl.adaptor.valid=${tpl.adaptor.valid}
search.multiMatchQuery.type=${search.multiMatchQuery.type}
search.open.downgrade=${search.open.downgrade}
#profile.threshold
profile.threshold=500
#zkAddress
zkAddress=${zkAddress}
#web.content
web.context=yohosearch