...
|
...
|
@@ -2,13 +2,18 @@ |
|
|
|
|
|
<config>
|
|
|
<group>
|
|
|
<property name="yoho.searchservice.env.namespace" defaultValue="yohosearchservice" description="namespace"/>
|
|
|
<property name="yoho.searchservice.env.serverport" defaultValue="8" description="port"/>
|
|
|
<property name="yoho.searchservice.env.webapphome" defaultValue="/home/dev/yoho-search-service/deploy" description="install path"/>
|
|
|
<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="" />
|
...
|
...
|
@@ -17,7 +22,7 @@ |
|
|
<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,searchField" 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="" />
|
|
|
|
...
|
...
|
@@ -35,26 +40,31 @@ |
|
|
<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="yoho.logs.basedir" defaultValue="/Users/ming/source/logs/" description="" />
|
|
|
<property name="yoho.logs.maxFileSize" defaultValue="10MB" description="" />
|
|
|
<property name="yoho.logs.maxHistory" defaultValue="7" description="" />
|
|
|
<property name="yoho.logs.level" defaultValue="DEBUG" description="" />
|
|
|
|
|
|
<property name="jdbc.mysql.yhbsearch.master" defaultValue="192.168.50.69:9980" description="" />
|
|
|
<property name="jdbc.mysql.yhbsearch.slave" defaultValue="192.168.102.219:3306" 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> |
...
|
...
|
|