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

Implement "Search" and "Search More" using pagination feature and time of tweet #212

Closed
mariobehling opened this issue Jan 12, 2017 · 0 comments

Comments

@mariobehling
Copy link
Member

The pagination feature was implemented in loklak server on Nov. 6 and for query parameters the SRU 2.0 standard was implemented. See loklak/loklak_server@92f8fe3 i.e.:
first page:
http://loklak.org/api/search.json?timezoneOffset=-60&q=singapore&startRecord=1&maximumRecords=10
second page:
http://loklak.org/api/search.json?timezoneOffset=-60&q=singapore&startRecord=11&maximumRecords=10

Please adapt the "search" and "search more" feature to use the pagination feature to increase the speed.

The question might raise how can we ensure consistency? E.g. result 1-10 are still 1-10 when the user call the second page with the results 11-20 and so forth?

Please use the timestamp of the last tweet - tweet number 10 - on the first page to search for the following 10 tweets and so forth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant