Closed eli-yip closed 10 months ago
Closing as a Help Wanted issue was opened for this.
@eli-yip Do you have a screenshot for reproduction? When I tried to reproduce it, I got 100 results.
@eli-yip Do you have a screenshot for reproduction? When I tried to reproduce it, I got 100 results.
Yes, screenshot from mobile, only 57 (below 60):
And screenshot from web, 100+:
FYI:
Thank you for replying, I'm looking forward to bug fixes.
Hi @eli-yip. yes, I'm using korean. This issue is not related to CJK or search engine. The cause was that pagination had not been implemented. ref code Although it's a temporary solution, making the following changes will allow displaying up to 1000 results.
searchPosts(serverUrl, newSearchTeamId, {...searchParams, per_page:1000}),
searchFiles(serverUrl, newSearchTeamId, {...searchParams, per_page:1000}),
I'm busy with another task, so implementing for this issue is challenging for me. I hope someone else pick up this issue.
Have a nice weekend!
Summary
When I try to use search feature on mobile app, I can only get about 60 result, while on desktop it can be about 200 or more.
Environment Information
Steps to reproduce
Tap search button, and try to search message from someone or anything else that will have results more than 60, the mobile app will only show latest 60 results.
Expected behavior
Show all the results, or when I scroll down, it will refresh and get more results(like mattermost web app).
Observed behavior (that appears unintentional)
Only 60 max results.
Possible fixes
Your code lack of requesting for more data when scrolling to the end of page. Sorry I am not familiar about react native, but I can guess what is happening behind the bug.