-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
V2 Skip/Take on Umbraco V9 beta 3 #234
Comments
Hi, I can second this. I did some testing and encountered the same issues. This was the code I was using. int pageIndex = blogSearch.CurrentPage - 1; QueryOptions queryOptions = new QueryOptions(pageIndex * pageSize, blogSearch.ItemsPerPage); The search works when on page 1 but when I use page 2 or anything above no results are returned. Regards David |
I also added the issue here where it might get picked up |
Hi all, Thanks for reporting. I've just merged dev to release/2.0 which contains some new unit tests for skip/take and that showed the issue. I have fixed this now and is in a version Examine 2.0.0-beta.152 release. It's available on MyGet here https://www.myget.org/F/umbracocore/api/v3/index.json. We'll need to update the CMS dependency too. Does anyone have time to create a PR for the CMS to point at the new Examine version? IIRC there is 2 or 3 csproj to update. |
Just upgraded to Umbraco V9 beta 3 and pleased to see the upgrade of Examine, so that we can now use skip and take to implement pagination on the search results. Unfortunately, it doesn't seem to be working. If I skip any number of records, then 0 are returned - even if there are valid records to return.
You can see the same problem in the Examine Management section in the back office.
Hopefully, this is the right place to raise this. Let me know if you need any further information.
The text was updated successfully, but these errors were encountered: