-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersinstant-meilisearch
Description
Description
Using <Configure hitsPerPage={0} />
is tranformed to { "limit": 1 }
in the request sent to meilisearch therefore returning 1 hit when 0 have been requested.
Expected behavior
Choosing 0 hits per page should set the limit to 0 in generated ms request
Seems to come from
pagination adapter :
Lines 18 to 23 in 8df981a
const { limit = 20, offset = 0, hits } = searchResponse | |
const additionalPage = hits.length >= limit ? 1 : 0 | |
return offset / hitsPerPage + 1 + additionalPage | |
} |
search params adapter
Lines 37 to 40 in 8df981a
return { | |
limit: hitsPerPage + 1, | |
offset: page * hitsPerPage, | |
} |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersinstant-meilisearch