Skip to content

Conversation

@samuele-ruffino96
Copy link

@samuele-ruffino96 samuele-ruffino96 commented Feb 21, 2025

Pull Request

What does this PR do?

  • Updates the README example code to show the necessity to cast the returned value (new Searchable interface) to SearchResult
  • Adds a new comprehensive example demonstrating custom search with pagination
  • Shows practical usage of pagination parameters like setPage() and setHitsPerPage()
  • Includes example JSON response showing pagination metadata (totalPages, hitsPerPage, etc.)

PR checklist

  • Changes are clearly described in the PR description above
  • Contributing guidelines have been reviewed (needs confirmer)
  • PR title accurately describes changes: "fix(docs): update README example to reflect latest sdk changes"

samuele ruffino and others added 5 commits February 21, 2025 17:53
Provide an example for custom search with pagination for clarity and ease of use.
Updated README examples to use correct SearchResult and SearchResultPaginated types for clarity and accuracy.
Copy link
Contributor

@Strift Strift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution 🙌

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented Mar 9, 2025

Build succeeded:

  • integration-and-unit-tests
  • linter

@meili-bors meili-bors bot merged commit 6fc2b51 into meilisearch:main Mar 9, 2025
3 checks passed
@curquiza curquiza added the documentation Improvements or additions to documentation label Mar 25, 2025
@curquiza curquiza changed the title docs: update README with SDK changes and add pagination examples Update README with SDK changes and add pagination examples Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants