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
6 years ago
Commit
36bec4b40e3f310664858c0fe4548077d681ad5a
1 parent
e0944d03
A用户:相关性。B用户:UVScore
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
service/src/main/java/com/yoho/search/common/utils/ABUserPartitionUtils.java
service/src/main/java/com/yoho/search/service/recall/beans/result/UserRecallResponseResultBuilder.java
service/src/main/java/com/yoho/search/common/utils/ABUserPartitionUtils.java
View file @
36bec4b
...
...
@@ -29,4 +29,8 @@ public class ABUserPartitionUtils {
return
isAUser
(
udid
);
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
isAUserComplete
(
13420925
,
"00bcfa1e5d7745ad8c4188929134da18f8485dbd"
));
}
}
...
...
service/src/main/java/com/yoho/search/service/recall/beans/result/UserRecallResponseResultBuilder.java
View file @
36bec4b
...
...
@@ -210,15 +210,15 @@ public class UserRecallResponseResultBuilder {
String
udid
=
userRecallRequest
.
getUdid
();
if
(
ABUserPartitionUtils
.
isAUserComplete
(
uid
,
udid
)){
if
(
searchDynamicConfigService
.
isAStrategyOpen
())
{
score
=
sknResult
.
getUvScore
();
}
else
{
score
=
W2vFeatureCalculator
.
calProductFeatureFactor
(
userFeatureFactor
,
sknResult
.
getFactor
());
}
else
{
score
=
sknResult
.
getUvScore
();
}
}
else
{
if
(
searchDynamicConfigService
.
isBStrategyOpen
())
{
score
=
W2vFeatureCalculator
.
calProductFeatureFactor
(
userFeatureFactor
,
sknResult
.
getFactor
());
}
else
{
score
=
sknResult
.
getUvScore
();
}
else
{
score
=
W2vFeatureCalculator
.
calProductFeatureFactor
(
userFeatureFactor
,
sknResult
.
getFactor
());
}
}
}
else
{
...
...
Please
register
or
login
to post a comment