修复一些bug
This commit is contained in:
1 parent
9bb17a67d2
commit
f4913b4fc2
7 files changed
+38
-10
No files matched your search
@@ -86,6 +86,22 @@ namespace Store.Modules.CloudProduct.Controllers
|
||||
{
|
||||
await _goodsIndexJob.ProcessPendingAsync();
|
||||
}
|
||||
|
||||
/// <summary>循环处理数据库中待分词的正常商品,成功写入索引后标记 is_segmented=1。</summary>
|
||||
[HttpGet]
|
||||
[EndpointSummary("重建所有待处理商品索引")]
|
||||
public async Task<long> RebuildPendingIndex()
|
||||
{
|
||||
long count = 0;
|
||||
int batchCount;
|
||||
do
|
||||
{
|
||||
batchCount = await _goodsService.IndexPendingGoodsAsync(1000);
|
||||
count += batchCount;
|
||||
} while (batchCount > 0);
|
||||
|
||||
return count;
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页搜索商品,可按标题、价格、类目、销量和平台筛选。
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user