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

Algolia page numbers are 0 indexed, this caters for that. #207

Merged

Conversation

llexical
Copy link
Contributor

So yeh. As the title says. Algolias page numbers are 0 indexed. No joke.
Page 1 = page0. Kinda like our current project versioning xD.

This makes sure that we always pass page -1 to aloglia for searching so
we never miss out on any results. I am hoping this will solve much
oddness.

So yeh. As the title says. Algolias page numbers are 0 indexed. No joke.
Page 1 = page0. Kinda like our current project versioning xD.

This makes sure that we always pass page -1 to aloglia for searching so
we never miss out on any results. I am hoping this will solve much
oddness.
llexical and others added 2 commits June 11, 2020 18:18
 So the number of pages it returns is correct. Just the last page is the
 the number of pages -1. As it is 0 indexed. SO now searching is setup to
 always do -1 we should all be getting an extra page back and more
 sensible results :D.
@racedale
Copy link
Member

This is gonna become a crucial test we should write after launch

@magnificode magnificode merged commit 99a8550 into master Jun 11, 2020
@magnificode
Copy link
Member

This is gonna become a crucial test we should write after launch

💯 - can we write out an issue in GH / Trello to track this?

@magnificode magnificode deleted the hotfix/algolia-search-not-showing-expected-results branch June 11, 2020 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants