Skip to content

fix: preserve zero hits-per-page limits#1502

Open
AysajanE wants to merge 1 commit into
meilisearch:mainfrom
AysajanE:northset/M-171
Open

fix: preserve zero hits-per-page limits#1502
AysajanE wants to merge 1 commit into
meilisearch:mainfrom
AysajanE:northset/M-171

Conversation

@AysajanE

Copy link
Copy Markdown

Summary

Generate a zero Meilisearch limit when InstantSearch explicitly requests zero hits per page.

Change

  • .changeset/fix-zero-hits-per-page.md
  • packages/instant-meilisearch/src/adapter/search-request-adapter/__tests__/search-params.test.ts
  • packages/instant-meilisearch/src/adapter/search-request-adapter/search-params-adapter.ts

Checks

  • npm test -- --configLoader runner --no-cache packages/instant-meilisearch/src/adapter/search-request-adapter/__tests__/search-params.test.ts — passed in a network-isolated container.

Fixes #1365


AI assistance was used; I reviewed and own this change.

Verification

Northset proof-of-pass receipt M-171
Contributor self-run; not maintainer verification.

Signed-off-by: Aysajan Eziz <aeziz@northset.ai>
@changeset-bot

changeset-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92e0d82

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@meilisearch/instant-meilisearch Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Strift Strift added the enhancement New feature or request label Jul 17, 2026
@Strift
Strift self-requested a review July 17, 2026 06:14
@Strift

Strift commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Hello @AysajanE, and thanks for your contribution 🙌

This looks good, but CI is currently broken because of a bug in Meilisearch.

I'm waiting for meilisearch/meilisearch#6493 to be released so I can merge this 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using instant search with hitsPerPage = 0 returns 1 result

2 participants