Last active
May 12, 2017 13:43
-
-
Save soen/9c91c7b44bf1a9dfa39c18ce1ab23c27 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 results = context.GetQueryable<SearchResultItem>() | |
| .Where(x => x.Content.Contains("Is that you, John Wayne? Is this me?")); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment