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
Plain Diff
Browse Files
Authored by
hugufei
9 years ago
Commit
d477ec9e1ec87f97f163782d7a06eba7e06a19ae
2 parents
bd4fe3a9
56d1acde
Merge branch 'master' into test
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
service/src/main/java/com/yoho/search/servicenew/impl/ProductIndexServiceImpl.java
service/src/main/java/com/yoho/search/servicenew/impl/ProductIndexServiceImpl.java
View file @
d477ec9
...
...
@@ -206,11 +206,16 @@ public class ProductIndexServiceImpl implements IProductIndexService,Application
public
Object
getResult
()
throws
Exception
{
SearchParam
searchParam
=
getSearchParamFromMap
(
paramMap
);
JSONObject
jsonObject
=
aggregationService
.
getIsNewAggregationResult
(
searchParam
,
paramMap
,
false
);
return
jsonObject
.
get
(
"isnewAgg"
);
Object
isNewResponse
=
jsonObject
.
get
(
"isnewAgg"
);
if
(
isNewResponse
!=
null
&&
((
Boolean
)
isNewResponse
).
booleanValue
())
{
return
"Y"
;
}
else
{
return
"N"
;
}
}
});
}
@Override
public
SearchApiResult
aggLimited
(
Map
<
String
,
String
>
paramMap
)
{
return
this
.
getSearchApiResult
(
"aggLimited"
,
paramMap
,
new
Searcher
()
{
...
...
@@ -218,7 +223,12 @@ public class ProductIndexServiceImpl implements IProductIndexService,Application
public
Object
getResult
()
throws
Exception
{
SearchParam
searchParam
=
getSearchParamFromMap
(
paramMap
);
JSONObject
jsonObject
=
aggregationService
.
getIsLimitAggregationResult
(
searchParam
,
paramMap
,
false
);
return
jsonObject
.
get
(
"islimitedAgg"
);
Object
islimitedAgg
=
jsonObject
.
get
(
"islimitedAgg"
);
if
(
islimitedAgg
!=
null
&&
((
Boolean
)
islimitedAgg
).
booleanValue
())
{
return
"Y"
;
}
else
{
return
"N"
;
}
}
});
}
...
...
@@ -230,7 +240,12 @@ public class ProductIndexServiceImpl implements IProductIndexService,Application
public
Object
getResult
()
throws
Exception
{
SearchParam
searchParam
=
getSearchParamFromMap
(
paramMap
);
JSONObject
jsonObject
=
aggregationService
.
getIsSecialofferAggregationResult
(
searchParam
,
paramMap
,
false
);
return
jsonObject
.
get
(
"specialofferAgg"
);
Object
specialofferAgg
=
jsonObject
.
get
(
"specialofferAgg"
);
if
(
specialofferAgg
!=
null
&&
((
Boolean
)
specialofferAgg
).
booleanValue
())
{
return
"Y"
;
}
else
{
return
"N"
;
}
}
});
}
...
...
Please
register
or
login
to post a comment