Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support pagination setting. #122

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

junghoon-vans
Copy link
Owner

@junghoon-vans junghoon-vans commented Jun 6, 2024

Meilisearch's search function is limited to 1,000 results by default. I provide a way to change these settings.

Example

@Setting(
    pagination=@Pagination(maxTotalHits=10)
)
public class TotalHitsLimited {
    @Id
    public int id;
    public String name;
}

The above entities will not return more than 10 results in a search.
Conversely, if you want to unlock the search volume limit, you can enter a larger number.

  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our issue tracker. Add the issue number to the Closes #issue-number line below
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

Closes #121

@junghoon-vans junghoon-vans self-assigned this Jun 6, 2024
@junghoon-vans junghoon-vans added type: enhancement A general enhancement in: core Issues in core support labels Jun 6, 2024
@junghoon-vans junghoon-vans force-pushed the feature/support-pagination-settings branch from 7e98a81 to f31dc79 Compare June 6, 2024 11:07
Copy link

sonarcloud bot commented Jun 6, 2024

@junghoon-vans junghoon-vans merged commit f4484f6 into main Jun 6, 2024
2 checks passed
@junghoon-vans junghoon-vans deleted the feature/support-pagination-settings branch June 6, 2024 11:10
@junghoon-vans junghoon-vans changed the title Add support for pagination setting. Add support pagination setting. Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support pagination setttings
1 participant