Last active
November 28, 2016 20:49
-
-
Save soen/a4cc50856a1b87a120f0549979301812 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
var queryable = context.GetQueryable<SearchResultItem>(); | |
var fuzzyWithSimilarity = queryable.Where(x => x.Template.Like("Marty McFly", 0.3f)); | |
var fuzzyWithNoSimilatiry = queryable.Where(x => x.Template.Like("Marty McFly")); | |
var fuzzyWithPhrase = queryable.Where(x => x.Template.Like("A martini. Shaken, not stirred.", 10)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment