Showing
3 changed files
with
12 additions
and
35 deletions
@@ -9,21 +9,20 @@ redis.readonly.proxy.auth= | @@ -9,21 +9,20 @@ redis.readonly.proxy.auth= | ||
9 | #search | 9 | #search |
10 | search.es.cluster.name=yohosearch_test | 10 | search.es.cluster.name=yohosearch_test |
11 | search.es.servers=192.168.102.209:9300 192.168.102.216:9300 | 11 | search.es.servers=192.168.102.209:9300 192.168.102.216:9300 |
12 | -search.index.number_of_replicas=2 | 12 | +search.index.number_of_replicas=1 |
13 | search.index.refresh_interval=1 | 13 | search.index.refresh_interval=1 |
14 | search.index.translog.flush_threshold_ops=5000 | 14 | search.index.translog.flush_threshold_ops=5000 |
15 | 15 | ||
16 | #search | 16 | #search |
17 | search.minimum.should.match=75% | 17 | search.minimum.should.match=75% |
18 | search.operator=and | 18 | search.operator=and |
19 | -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,searchField | 19 | +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 |
20 | 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) | 20 | 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) |
21 | search.script.lang=groovy | 21 | search.script.lang=groovy |
22 | search.use.cache=true | 22 | search.use.cache=true |
23 | - | ||
24 | -#tpl | ||
25 | tpl.adaptor.valid=true | 23 | tpl.adaptor.valid=true |
26 | 24 | ||
25 | + | ||
27 | #zkAddress | 26 | #zkAddress |
28 | zkAddress=192.168.102.205:2181 | 27 | zkAddress=192.168.102.205:2181 |
29 | 28 |
@@ -5,30 +5,6 @@ | @@ -5,30 +5,6 @@ | ||
5 | <property name="yoho.search.service.env.namespace" defaultValue="yohosearch" description="namespace"/> | 5 | <property name="yoho.search.service.env.namespace" defaultValue="yohosearch" description="namespace"/> |
6 | <property name="yoho.search.service.env.serverport" defaultValue="0" description="port"/> | 6 | <property name="yoho.search.service.env.serverport" defaultValue="0" description="port"/> |
7 | <property name="yoho.search.service.env.webapphome" defaultValue="/home/dev/yoho-search-service/deploy" description="install path"/> | 7 | <property name="yoho.search.service.env.webapphome" defaultValue="/home/dev/yoho-search-service/deploy" description="install path"/> |
8 | - | ||
9 | - <property name="search.es.cluster.name" defaultValue="yohosearch_test" description="" /> | ||
10 | - <property name="search.es.servers" defaultValue="192.168.102.209:9300 192.168.102.216:9300" description="" /> | ||
11 | - <property name="search.index.number_of_replicas" defaultValue="1" description="" /> | ||
12 | - <property name="search.index.refresh_interval" defaultValue="1" description="" /> | ||
13 | - <property name="search.index.translog.flush_threshold_ops" defaultValue="5000" description="" /> | ||
14 | - <property name="search.index.batch.limit" defaultValue="5000" description="" /> | ||
15 | - <property name="search.index.batch.limit.tbl" defaultValue="2000" description="" /> | ||
16 | - <property name="search.index.batch.max.thread.size" defaultValue="10" description="" /> | ||
17 | - <property name="search.minimum.should.match" defaultValue="75%" description="" /> | ||
18 | - <property name="search.operator" defaultValue="and" description="" /> | ||
19 | - <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,brandKeyword^500,searchField" description="" /> | ||
20 | - <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="" /> | ||
21 | - <property name="search.script.lang" defaultValue="groovy" description="" /> | ||
22 | - | ||
23 | - <property name="search.use.cache" defaultValue="false" description="搜索结果是否使用缓存" /> | ||
24 | - <property name="tpl.adaptor.valid" defaultValue="true" description="全球购融合是否生效" /> | ||
25 | - | ||
26 | - <property name="jdbc.mysql.yhbsearch.datasources" defaultValue="yhb_search_2016" description="" /> | ||
27 | - <property name="jdbc.mysql.yhbsearch.master" defaultValue="192.168.102.216:3306" description="" /> | ||
28 | - <property name="jdbc.mysql.yhbsearch.slave" defaultValue="192.168.102.216:3306" description="" /> | ||
29 | - <property name="jdbc.mysql.yhbsearch.username" defaultValue="yh_test" description="" /> | ||
30 | - <property name="jdbc.mysql.yhbsearch.password" defaultValue="9nm0icOwt6bMHjMusIfMLw==" description="" /> | ||
31 | - | ||
32 | </group> | 8 | </group> |
33 | <script> | 9 | <script> |
34 | <generate template="META-INF/autoconf/databases.yml" destfile="WEB-INF/classes/databases.yml"/> | 10 | <generate template="META-INF/autoconf/databases.yml" destfile="WEB-INF/classes/databases.yml"/> |
@@ -14,13 +14,15 @@ search.index.refresh_interval=${search.index.refresh_interval} | @@ -14,13 +14,15 @@ search.index.refresh_interval=${search.index.refresh_interval} | ||
14 | search.index.translog.flush_threshold_ops=${search.index.translog.flush_threshold_ops} | 14 | search.index.translog.flush_threshold_ops=${search.index.translog.flush_threshold_ops} |
15 | 15 | ||
16 | #search | 16 | #search |
17 | -search.minimum.should.match=${search.minimum.should.match} | ||
18 | -search.operator=${search.operator} | ||
19 | -search.default.field=${search.default.field} | ||
20 | -search.script.score=${search.script.score} | ||
21 | -search.script.lang=${search.script.lang} | ||
22 | -search.use.cache=${search.use.cache} | ||
23 | -tpl.adaptor.valid=${tpl.adaptor.valid} | 17 | +search.minimum.should.match=75% |
18 | +search.operator=and | ||
19 | +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 | ||
20 | +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) | ||
21 | +search.script.lang=groovy | ||
22 | + | ||
23 | +search.use.cache=true | ||
24 | + | ||
25 | +tpl.adaptor.valid=true | ||
24 | 26 | ||
25 | #zkAddress | 27 | #zkAddress |
26 | zkAddress=${zkAddress} | 28 | zkAddress=${zkAddress} |
-
Please register or login to post a comment