Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenListTeam/OpenList
/ SearchIndex
Function
SearchIndex
server/middlewares/search.go:11–19 ·
view source on GitHub ↗
(c *gin.Context)
Source
from the content-addressed store, hash-verified
9
)
10
11
func
SearchIndex(c *gin.Context) {
12
mode := setting.GetStr(conf.SearchIndex)
13
if
mode ==
"none"
{
14
common.ErrorResp(c, errs.SearchNotAvailable, 404)
15
c.Abort()
16
}
else
{
17
c.Next()
18
}
19
}
Callers
nothing calls this directly
Calls
2
GetStr
Function · 0.92
ErrorResp
Function · 0.92
Tested by
no test coverage detected