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
2018-04-04 17:00:24 +0800
Commit
b24e830b45aef5e70dae5d5342b677ce1df2d1e4
1 parent
03b9db7b
模糊搜索时仅线下可售商品降权
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
service/src/main/java/com/yoho/search/service/helper/FunctionScoreSearchHelper.java
service/src/main/java/com/yoho/search/service/scorer/SearchScorerFactory.java
service/src/main/java/com/yoho/search/service/scorer/impl/OfflineSaleOnlyScorer.java
service/src/main/java/com/yoho/search/service/helper/FunctionScoreSearchHelper.java
View file @
b24e830
...
...
@@ -145,6 +145,8 @@ public class FunctionScoreSearchHelper {
scorers
.
add
(
searchScorerFactory
.
getFirstShelveTimeScorer
(
FUZZY_FIRST_SHELVE_SCORE
));
// 4、添加频道搜索
scorers
.
add
(
searchScorerFactory
.
getChannelSearchScorer
(
paramMap
));
// 5、添加线下可售商品打分器
scorers
.
add
(
searchScorerFactory
.
getOfflineSaleOnlyScorer
());
return
scorers
;
}
...
...
service/src/main/java/com/yoho/search/service/scorer/SearchScorerFactory.java
View file @
b24e830
...
...
@@ -106,4 +106,7 @@ public class SearchScorerFactory {
return
new
FeatureFactorScorer
(
scoreFilter
,
featureFactors
,
featureVersion
);
}
public
IScorer
getOfflineSaleOnlyScorer
()
{
return
new
OfflineSaleOnlyScorer
();
}
}
...
...
service/src/main/java/com/yoho/search/service/scorer/impl/OfflineSaleOnlyScorer.java
View file @
b24e830
Please
register
or
login
to post a comment