|
|
@@ -1113,8 +1113,8 @@ public class SearchServiceImpl implements SearchService {
|
|
|
*/
|
|
|
private List<Map<String, Object>> collectBySearchGoods(String keyword, List<String> keywordFields,
|
|
|
Boolean tokenized, CollectField collectedField, Map<FilterField, Object> filters) {
|
|
|
- if (collectedField == null && CollectionUtils.isEmpty(filters)) {
|
|
|
- throw new IllegalArgumentException("参数不合法:collectedField=" + collectedField + ", filter=" + filters);
|
|
|
+ if (collectedField == null) {
|
|
|
+ throw new IllegalArgumentException("参数为空:collectedField");
|
|
|
}
|
|
|
IndexSearcher indexSearcher = SearchUtils.getIndexSearcher(SearchConstants.GOODS_TABLE_NAME);
|
|
|
|