Skip to content

Commit

Permalink
fix: reduce default search page size
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Nov 25, 2024
1 parent 42c1534 commit 02803c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions internal/search/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ type Handler interface {
Handle(c echo.Context) error
}

const defaultLimit = 50
const maxLimit = 200
const defaultLimit = 10
const maxLimit = 20

type Req struct {
Keyword string `json:"keyword"`
Expand Down
5 changes: 0 additions & 5 deletions openapi/v0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ paths:
不同筛选条件之间为 `且`
由于目前 meilisearch 的一些问题,条目排名更新并不会触发搜索数据更新,所以条目排名可能是过期数据。
希望未来版本的 meilisearch 能解决相关的问题。
parameters:
- name: limit
in: query
Expand Down

0 comments on commit 02803c9

Please sign in to comment.