v8 - How does umbracoHelper.Search work in v8 (with IQueryExecutor?) ?
The old way:
var query = ExamineManager.Instance.CreateSearchCriteria();
query.Field("testProperty", "IsEqualToThisValue");
var results = umbracoHelper.Search(query).ToList();
Haven't tried it but this seems like you'd want to use this method instead: IEnumerable<PublishedSearchResult> Search(string term, int skip, int take, out long totalRecords, string culture = null, string indexName = null);
v8 - How does umbracoHelper.Search work in v8 (with IQueryExecutor?) ?
The old way:
Now there is:
How should I create the query object, is it IQuery I should use? And how can I get the instance for this in the first place?
Haven't tried it but this seems like you'd want to use this method instead:
IEnumerable<PublishedSearchResult> Search(string term, int skip, int take, out long totalRecords, string culture = null, string indexName = null);
Hi Sebastiaan,
No I know that one.. But I'd like to use IQuery instead of query in a string...
IQueryExectutor is not doing anything else magic, it uses the paged method above directly:
Can you use to get ALL pages in the site by Document Type? I dont want to use a search term - just pull all pages of a particular type
is working on a reply...