Last active
March 11, 2020 09:17
-
-
Save jondjones/842dcca82e900b70ee44814d2142d4b7 to your computer and use it in GitHub Desktop.
How To Get A List Of Scheduled Pages Within Umbraco 8 - 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public SearchByIndex(string indexName) | |
{ | |
ExamineManager.Instance.TryGetIndex(indexName, out var index); | |
var searcher = index.GetSearcher(); | |
ISearchResults results = searcher | |
.CreateQuery() | |
.Field("__Published", "n") | |
.Execute(); | |
return results; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment