This commit is contained in:
daihh
2022-12-30 17:22:01 +08:00
parent ccb0948516
commit 06831f18af
3 changed files with 28 additions and 1 deletions

View File

@@ -55,6 +55,9 @@ public class CourseFullTextApi extends ApiBaseController{
if(fullTextSearch==null) {
return error("初始化失败:未实现全文检索功能");
}
//重新创建索引,如果已经存在,不会重新建
fullTextSearch.reCreateIndex(ICourseFullTextSearch.DEFAULT_INDEX_NAME);
//提取课程信息,因为现在课程没有太多,所以一次性全部查出来,
CourseQueryDto dto =new CourseQueryDto();
dto.setPublish(true);//必须是已发布的