Toggle navigation
Toggle navigation
This project
Loading...
Sign in
yoho-search
/
yoho-search-service
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hugufei
9 years ago
Commit
8521d2ac08bf325a75064f27b6dd5f6a1cc8e006
1 parent
ddabc943
update search_filed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
web/src/main/resources/config.properties
web/src/main/webapp/META-INF/autoconf/config.properties
web/src/main/resources/config.properties
View file @
8521d2a
...
...
@@ -20,7 +20,7 @@ search.index.translog.flush_threshold_ops=5000
#search
search.minimum.should.match
=
75%
search.operator
=
and
search.default.field
=
productName.productName_ansj^10,brandName^500,brandNameCn^100,brandNameCn.brandNameCn_pinyin^100,brandNameEn^100,brandDomain^100,maxSort^300,maxSort.maxSort_pinyin^300,middleSort^500,middleSort.middleSort_pinyin^500,smallSort^1000,smallSort.smallSort_pinyin^1000,productSkn.productSkn_ansj,productKeyword^500,brandKeyword^50,genderS^10,searchField,searchField_ansj
search.default.field
=
productName.productName_ansj^10,brandName^500,brandNameCn^100,brandNameCn.brandNameCn_pinyin^100,brandNameEn^100,brandDomain^100,maxSort^300,maxSort.maxSort_pinyin^300,middleSort^500,middleSort.middleSort_pinyin^500,smallSort^1000,smallSort.smallSort_pinyin^1000,productSkn.productSkn_ansj,productKeyword^500,brandKeyword^50,genderS^10,s
tandardOnlyNames.standardOnlyNames_pinyin^50,s
earchField,searchField_ansj
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
...
...
web/src/main/webapp/META-INF/autoconf/config.properties
View file @
8521d2a
...
...
@@ -20,7 +20,7 @@ search.index.translog.flush_threshold_ops=${search.index.translog.flush_threshol
#search
search.minimum.should.match
=
75%
search.operator
=
and
search.default.field
=
productName.productName_ansj^10,brandName^500,brandNameCn^100,brandNameCn.brandNameCn_pinyin^100,brandNameEn^100,brandDomain^100,maxSort^300,maxSort.maxSort_pinyin^300,middleSort^500,middleSort.middleSort_pinyin^500,smallSort^1000,smallSort.smallSort_pinyin^1000,productSkn.productSkn_ansj,productKeyword^500,brandKeyword^50,genderS^10,searchField,searchField_ansj
search.default.field
=
productName.productName_ansj^10,brandName^500,brandNameCn^100,brandNameCn.brandNameCn_pinyin^100,brandNameEn^100,brandDomain^100,maxSort^300,maxSort.maxSort_pinyin^300,middleSort^500,middleSort.middleSort_pinyin^500,smallSort^1000,smallSort.smallSort_pinyin^1000,productSkn.productSkn_ansj,productKeyword^500,brandKeyword^50,genderS^10,s
tandardOnlyNames.standardOnlyNames_pinyin^50,s
earchField,searchField_ansj
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
...
...
Please
register
or
login
to post a comment