Last active
November 28, 2016 20:47
-
-
Save soen/01e707eade0c8316437bc2bcc53b90a0 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
using (var context = ContentSearchManager.GetIndex("sitecore_master_index").CreateSearchContext()) | |
{ | |
// Grab the first 20 search results | |
var results = context.GetQueryable<SearchResultItem>() | |
.Where(...) | |
.Skip(0).Take(20); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment