|
|
@@ -1163,14 +1163,14 @@ public class SearchServiceImpl implements SearchService {
|
|
|
productsFields.add(SearchConstants.PRODUCT_PRIVATE_PCMPCODE_FIELD);
|
|
|
|
|
|
// 现货
|
|
|
- Map<String, Object> stock = getGoodsIds(keyword, goodsFields, true, pageParams);
|
|
|
+ Map<String, Object> stock = getGoodsIds(keyword, goodsFields, false, pageParams);
|
|
|
// 如搜索无结果则分词
|
|
|
if (CollectionUtils.isEmpty(stock) || stock.get("content") == null || JSONObject.parseArray(stock.get("content").toString()).isEmpty()) {
|
|
|
keyword = recursivelyGetGoodsIds(keyword, null, true);
|
|
|
stock = getGoodsIds(keyword, goodsFields, true, pageParams);
|
|
|
}
|
|
|
// 期货
|
|
|
- SPage<Long> futures = getProductIds(keyword, productsFields, true, pageParams);
|
|
|
+ SPage<Long> futures = getProductIds(keyword, productsFields, false, pageParams);
|
|
|
// 如搜索无结果则分词
|
|
|
if (futures == null || CollectionUtils.isEmpty(futures.getContent())) {
|
|
|
keyword = recursivelyProductIds(keyword, productsFields, true);
|