graasp / graasp/graasp-api

Meilisearch `search` returns a limit of 1000 documents on search

Open
#2,038 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7
Forks
5
PR merge metrics
No merged PRs in 30d

Description

For performance, meilisearch returns a limit of 1000 documents on search.

We currently use the `totalHits` value in the search result to display in the header "Search among XXX resources" this always shows 1000 since we have surpassed 1000 published resources.

We should probably either increase the limit (but that will hit performance), or rely on a looser count (maybe updated once a week when we re-index ?)

Mentioning @pyphilia for awareness.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.