Created
November 7, 2018 22:19
-
-
Save grg17/cc8a6400d5205555e68c300842b411c0 to your computer and use it in GitHub Desktop.
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
ISearchIndex index = ContentSearchManager.GetIndex("sitecore_master_index") | |
using (IProviderSearchContext context = index.CreateSearchContext()) | |
{ | |
var resultCount = context.GetQueryable<SearchResultItem>().Count(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment