Updates search published content search extensions to correspond with new examine api changes, updates examine api changes
This commit is contained in:
@@ -490,9 +490,7 @@ namespace Umbraco.Web.Search
|
||||
while (page * pageSize < total)
|
||||
{
|
||||
//paging with examine, see https://shazwazza.com/post/paging-with-examine/
|
||||
var results = searcher.Search(
|
||||
searcher.CreateCriteria().Field("nodeType", id).Compile(),
|
||||
maxResults: pageSize * (page + 1));
|
||||
var results = searcher.CreateQuery().Field("nodeType", id).Execute(maxResults: pageSize * (page + 1));
|
||||
total = results.TotalItemCount;
|
||||
var paged = results.Skip(page * pageSize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user