private ITermMatcher BuildEditMatcher(EditAstQuery editQuery) { return(new DfaTermMatcher(new LevenshteinMatcher(editQuery.Value, editQuery.Distance))); }
private ISearchQuery CompileEdit(EditAstQuery editQuery) { return(new OrMultiQuery(index.GetPostingLists(editQuery.Value, editQuery.Distance).Select(t => new TermQuery(t)).ToArray())); }