config.properties
2.01 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=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=
#bigData - redis servers
bigDataRedis-search.proxy.address=123.206.17.17
bigDataRedis-search.proxy.port=16379
bigDataRedis-search.proxy.auth=
#search redis
redis.search.proxy.address =192.168.102.216
redis.search.proxy.port =6379
redis.search.proxy.auth =
#es.cluster
search.es.cluster.name=yohosearch_test
search.es.servers=192.168.102.209:9300 192.168.102.216:9300
search.index.number_of_replicas=0
search.index.refresh_interval=10s
search.index.translog.flush_threshold_ops=10000
#search
search.minimum.should.match=75%
search.operator=and
search.default.field=brandName.brandName_lowercase^4000,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,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=redisCache
#personalized search
search.personalized.switch=true
search.personalized.max.should=50
tpl.adaptor.valid=true
search.multiMatchQuery.type=CROSS_FIELDS
search.open.downgrade=true
#zkAddress
zkAddress=192.168.102.211:2181
#web.content
web.context=yohosearch
#profile.threshold
profile.threshold=500