...
|
...
|
@@ -58,24 +58,24 @@ public class SelectionWithAdvanceImpl implements ISelectionsWithAdvanceService { |
|
|
@Override
|
|
|
public SearchApiResult getSelectionsForPc(Map<String, String> paramMap) {
|
|
|
try {
|
|
|
String productIndexName = ISearchConstants.INDEX_NAME_STORAGE_SKU_INDEX;
|
|
|
BoolQueryBuilder boolFilter = breakSizeService.genBoolFilterBuilderForSortSize(paramMap);
|
|
|
String productIndexName = ISearchConstants.INDEX_NAME_PRODUCT_INDEX;
|
|
|
BoolQueryBuilder boolFilter = searchServiceHelper.constructFilterBuilder(paramMap, null);
|
|
|
return this.getSelectionsWithAdvance(paramMap, productIndexName, boolFilter);
|
|
|
} catch (Exception e) {
|
|
|
logger.error(e.getMessage(), e);
|
|
|
return new SearchApiResult().setCode(500).setMessage("getSelectionsForPc Exception:" + e.getMessage());
|
|
|
return new SearchApiResult().setCode(500).setMessage("getSelectionsForBreakSize Exception:" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public SearchApiResult getSelectionsForBreakSize(Map<String, String> paramMap) {
|
|
|
try {
|
|
|
String productIndexName = ISearchConstants.INDEX_NAME_PRODUCT_INDEX;
|
|
|
BoolQueryBuilder boolFilter = searchServiceHelper.constructFilterBuilder(paramMap, null);
|
|
|
String productIndexName = ISearchConstants.INDEX_NAME_STORAGE_SKU_INDEX;
|
|
|
BoolQueryBuilder boolFilter = breakSizeService.genBoolFilterBuilderForSortSize(paramMap);
|
|
|
return this.getSelectionsWithAdvance(paramMap, productIndexName, boolFilter);
|
|
|
} catch (Exception e) {
|
|
|
logger.error(e.getMessage(), e);
|
|
|
return new SearchApiResult().setCode(500).setMessage("getSelectionsForBreakSize Exception:" + e.getMessage());
|
|
|
return new SearchApiResult().setCode(500).setMessage("getSelectionsForPc Exception:" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|