Skip to content

Add pagination support to search #24

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ricardoboss
Copy link
Member

No description provided.

@ricardoboss ricardoboss added the enhancement New feature or request label Aug 2, 2022
@ricardoboss ricardoboss requested a review from chucker August 2, 2022 10:47
@ricardoboss ricardoboss self-assigned this Aug 2, 2022
{
AttributesToHighlight = new[] { "name", "location", "content" },
HighlightPreTag = "<mark>",
HighlightPostTag = "</mark>",
AttributesToCrop = new[] { "content" },
CropLength = 25,
AttributesToRetrieve = new[] { "name", "location", "content" },
Limit = limit,
Copy link
Collaborator

Choose a reason for hiding this comment

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

hmm.

  1. Guide on pagination meilisearch/documentation#561 recommends against numbered pagination and recommends infinite scroll (eww).
  2. is the sort stable? if another item gets added to the index, are the results entirely different?

Copy link
Member Author

Choose a reason for hiding this comment

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

Personally, I'd prefer infinite scrolling as there are already some vue components implementing this

@ricardoboss ricardoboss force-pushed the search-results-improvements branch from 6ea7ece to e649926 Compare August 15, 2022 11:25
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.

2 participants