feat: build index & search with bleve (close #1740 pr #2386)

* feat: build index & search with bleve (#1740)

* delete unused struct

Co-authored-by: Noah Hsu <i@nn.ci>
This commit is contained in:
BoYanZh
2022-11-24 11:46:47 +08:00
committed by GitHub
parent 2b902de6fd
commit 330a767fd7
11 changed files with 346 additions and 0 deletions

View File

@ -107,6 +107,11 @@ func admin(g *gin.RouterGroup) {
ms := g.Group("/message")
ms.POST("/get", message.HttpInstance.GetHandle)
ms.POST("/send", message.HttpInstance.SendHandle)
index := g.Group("/index")
index.POST("/build", handles.BuildIndex)
index.GET("/progress", handles.GetProgress)
index.GET("/search", handles.Search)
}
func _fs(g *gin.RouterGroup) {