Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jondjones/842dcca82e900b70ee44814d2142d4b7 to your computer and use it in GitHub Desktop.
Save jondjones/842dcca82e900b70ee44814d2142d4b7 to your computer and use it in GitHub Desktop.
How To Get A List Of Scheduled Pages Within Umbraco 8 - 1
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