@@ -17,6 +17,7 @@ import (
// for a repository.
func StartIndexing(user, owner *User, repo *Repository) {
if !setting.Search.Do {
+ log.Trace("Indexing not enabled")
return
}
var ireq struct{ RepoID, RepoPath string }
@@ -332,8 +332,8 @@ var (
Search struct {
Do bool
- IndexURL string
- SearchURL string
+ IndexURL string `ini:"INDEX_URL"`
+ SearchURL string `ini:"SEARCH_URL"`
DOI struct {
@@ -107,11 +107,3 @@ func ExploreCommits(c *context.Context) {
c.Data["Commits"] = res.Commits
c.HTML(200, EXPLORE_COMMITS)
-
-type SearchRequest struct {
- Token string
- CsrfT string
- UserID int64
- Query string
- SType int64
-}