13 Star 100 Fork 25

RACHEL/fastsearch

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.go 586 Bytes
一键复制 编辑 原始数据 按行查看 历史
hkingsoftcn 提交于 2024-09-14 17:29 +08:00 . 增加索引缓存,提升索引速度
package router
import (
"gitee.com/rachel_os/fastsearch/web/controller"
"github.com/gin-gonic/gin"
)
// InitIndexRouter 索引路由
func InitIndexRouter(Router *gin.RouterGroup) {
indexRouter := Router.Group("index")
indexRouter.Use(controller.CheckExistsDB())
{
indexRouter.POST("", controller.AddIndex) // 添加单条索引
indexRouter.POST("batch", controller.BatchAddIndex) // 批量添加索引
indexRouter.POST("remove", controller.RemoveIndex) // 删除索引
indexRouter.Any("taskcount", controller.IndexTaskCount) // 索引任务
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rachel_os/fastsearch.git
git@gitee.com:rachel_os/fastsearch.git
rachel_os
fastsearch
fastsearch
98a29f8d6bf9

搜索帮助