Skip to content

Commit

Permalink
Merge pull request #47 from Makonike/hotfix/fixcommentary
Browse files Browse the repository at this point in the history
更正一些错误注释
  • Loading branch information
newpanjing authored Jul 24, 2022
2 parents c61a39b + 9db5c6c commit 11e3513
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion searcher/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (e *Engine) Init() {
e.Option = e.GetOptions()
}
if e.Timeout == 0 {
e.Timeout = 10 * 3 //默认10分钟
e.Timeout = 10 * 3 // 默认30s
}
//-1代表没有初始化
e.documentCount = -1
Expand Down
2 changes: 1 addition & 1 deletion searcher/model/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type SearchRequest struct {
Order string `json:"order,omitempty" form:"database"` // 排序类型
Page int `json:"page,omitempty" form:"database"` // 页码
Limit int `json:"limit,omitempty" form:"database"` // 每页大小,最大1000,超过报错
Highlight *Highlight `json:"highlight,omitempty" form:"database"` // 关键词高了
Highlight *Highlight `json:"highlight,omitempty" form:"database"` // 关键词高亮
Database string `json:"database" form:"database"` // 数据库名字
}

Expand Down
2 changes: 1 addition & 1 deletion searcher/sorts/fast.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (f *FastSort) find(target *uint32) (bool, int) {
mid := (low + high) / 2
if f.data[mid].Id == *target {
return true, mid
} else if f.data[mid].Id < *target {
} else if f.data[mid].Id > *target {
high = mid - 1
} else {
low = mid + 1
Expand Down

0 comments on commit 11e3513

Please sign in to comment.