Browse Source

validate when updating goods' index after creating index

sunyj 8 years ago
parent
commit
0a66a1291c

+ 1 - 1
mall-search/src/main/java/com/uas/search/service/impl/IndexServiceImpl.java

@@ -384,7 +384,7 @@ public class IndexServiceImpl implements IndexService {
         // 如果需要从批次表获取数据,更新本地索引
         if(updateFromDbAfterCreating){
             try {
-                multiDownloadGoods(null, null, null, null);
+                multiDownloadGoods(null, null, null, DownloadHelper.ValidateResult.CURRENT);
                 createGoodsIndexesFromFiles(false);
             } catch (Throwable e) {
                 throw new IllegalStateException("批次索引建立完成后,获取批次表数据用来更新索引时出错", e);