auto-config.xml
5.21 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
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<config>
<group>
<property name="yoho.search.service.env.namespace" defaultValue="yohosearch" description="namespace"/>
<property name="yoho.search.service.env.serverport" defaultValue="7" description="port"/>
<property name="yoho.search.service.env.webapphome" defaultValue="/home/dev/yoho-search-service/deploy" description="install path"/>
<property name="java.logs.home" defaultValue="/Data/logs" description="日志打印路径"/>
<<<<<<< HEAD
<property name="search.es.cluster.name" defaultValue="yohosearch" description="" />
<property name="search.es.servers" defaultValue="172.16.6.95:9300 " description="" />
=======
<property name="search.es.cluster.name" defaultValue="yohosearch_test" description="" />
<property name="search.es.servers" defaultValue="192.168.102.209:9300" description="" />
>>>>>>> dev
<property name="search.index.number_of_replicas" defaultValue="2" description="" />
<property name="search.index.refresh_interval" defaultValue="1" description="" />
<property name="search.index.translog.flush_threshold_ops" defaultValue="5000" description="" />
<property name="search.index.batch.limit" defaultValue="5000" description="" />
<property name="search.index.batch.limit.tbl" defaultValue="2000" description="" />
<property name="search.index.batch.max.thread.size" defaultValue="10" description="" />
<property name="search.minimum.should.match" defaultValue="75%" description="" />
<property name="search.operator" defaultValue="and" description="" />
<property name="search.default.field" defaultValue="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,searchField" description="" />
<property name="search.script.score" defaultValue="_score+doc['sortWeight'].value*0.003+(100-doc['breakingRate'].value)/100 * doc['salesWithDateDiff'].value/pow((now-doc['shelveTime'].value)/3600+2,1.8)" description="" />
<property name="search.script.lang" defaultValue="groovy" description="" />
<property name="mq.server" defaultValue="192.168.10.109" description="" />
<property name="mq.port" defaultValue="5672" description="" />
<property name="mq.username" defaultValue="admin1" description="" />
<property name="mq.password" defaultValue="123qwe" description="" />
<property name="mq.exchange" defaultValue="yoho_search" description="" />
<property name="is.do.rebuild.index" defaultValue="false" description="" />
<property name="is.do.rebuild.tbl.index" defaultValue="false" description="" />
<property name="redis.server" defaultValue="192.168.50.69" description="" />
<property name="redis.port" defaultValue="6379" description="" />
<property name="redis.proxy.address" defaultValue="192.168.102.216" description="" />
<property name="redis.proxy.port" defaultValue="6379" description="" />
<property name="redis.readonly.proxy.address" defaultValue="192.168.102.216" description="" />
<property name="redis.readonly.proxy.port" defaultValue="6379" description="" />
<property name="redis.pool.maxTotal" defaultValue="100" description="" />
<property name="redis.pool.maxIdle" defaultValue="100" description="" />
<property name="redis.pool.maxWaitMillis" defaultValue="2000" description="" />
<property name="redis.pool.minIdle" defaultValue="50" description="" />
<property name="redis.pool.testOnBorrow" defaultValue="false" description="" />
<property name="redis.pool.testWhileIdle" defaultValue="true" description="" />
<property name="rabbit.mq.prefix" defaultValue="no_" description="" />
<property name="tbl.product.private.key" defaultValue="a85bb0674e08986c6b115d5e3a4884fa" description="" />
<property name="tbl.product.url" defaultValue="http://test.soa.global.yohobuy.com/product/api/v1/detail/" description="" />
<property name="keyword.user.choice.file" defaultValue="/Users/ming/source/logs/fake.csv" description="" />
<property name="jdbc.mysql.yhbsearch.master" defaultValue="192.168.102.209:3306" description="" />
<property name="jdbc.mysql.yhbsearch.slave" defaultValue="192.168.102.209:3306" description="" />
<property name="jdbc.mysql.yhbsearch.username" defaultValue="yh_test" description="" />
<property name="jdbc.mysql.yhbsearch.password" defaultValue="9nm0icOwt6bMHjMusIfMLw==" description="" />
<property name="jdbc.mysql.yhbsearch.datasources" defaultValue="yhb_search_2016" description="" />
</group>
<script>
<generate template="META-INF/autoconf/databases.yml" destfile="WEB-INF/classes/databases.yml"/>
<generate template="META-INF/autoconf/logback.xml" destfile="WEB-INF/classes/logback.xml"/>
<generate template="META-INF/autoconf/config.properties" destfile="WEB-INF/classes/config.properties"/>
</script>
</config>