You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When searching examine using QueryOptions there is a bug.
When you run search on page 1 it seems to work as expected.
When you run the same search on page 2 it brings back on results
When you run the same search on page 3 or above it brings back on results
Specifics
Relating to the code I have written below.
int pageIndex = blogSearch.CurrentPage - 1;
int pageSize = blogSearch.ItemsPerPage;
As I mentioned in the summary no data is returned when searching page 2 or above.
All other data like the TotalResults and TotalPages all seems correct
Steps to reproduce
Run any basic Examine search using QueryOptions.
Page 1 works but if you test searching page two no results will be retuned (in error)
Which Umbraco version are you using?
Umbraco version 9.0.0-beta003
Bug summary
When searching examine using QueryOptions there is a bug.
When you run search on page 1 it seems to work as expected.
When you run the same search on page 2 it brings back on results
When you run the same search on page 3 or above it brings back on results
Specifics
Relating to the code I have written below.
int pageIndex = blogSearch.CurrentPage - 1;
int pageSize = blogSearch.ItemsPerPage;
QueryOptions queryOptions = new QueryOptions(pageIndex * pageSize, blogSearch.ItemsPerPage);
ISearchResults searchResult = examineQuery.Execute(queryOptions);
IEnumerable pagedResults = searchResult;
int totalResults = Convert.ToInt32(searchResult.TotalItemCount);
blogSearch.TotalItems = totalResults;
blogSearch.TotalPages = (totalResults + blogSearch.ItemsPerPage - 1) / blogSearch.ItemsPerPage;
blogSearch.BlogDetailsPages = GetBlogArticlesFromSearch(pagedResults);
As I mentioned in the summary no data is returned when searching page 2 or above.
All other data like the TotalResults and TotalPages all seems correct
Steps to reproduce
Run any basic Examine search using QueryOptions.
Page 1 works but if you test searching page two no results will be retuned (in error)
QueryOptions queryOptions = new QueryOptions(pageIndex * pageSize, blogSearch.ItemsPerPage);
ISearchResults searchResult = examineQuery.Execute(queryOptions);
Expected result / actual result
Results should be returned for all pages in the search,
The text was updated successfully, but these errors were encountered: