Skip to content

Commit

Permalink
Fix search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hayashiki committed Dec 10, 2021
1 parent ad6ad0a commit 7390210
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion post.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ type PostListOptions struct {

func (opts *PostListOptions) SetDefaultSort() {
if !strings.Contains(opts.Q, "desc:") {
opts.Q += "+desc:score"
opts.Q += " desc:score"
}
}

Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package docbase

const (
version = "1.0.2"
version = "1.0.3"
revision = "HEAD"
)

0 comments on commit 7390210

Please sign in to comment.