public IEnumerable <DictionaryTerm> GetTerms(ITermMatcher matcher) { foreach (var term in dictionary.Match(matcher.ToDfaMatcher()) .Select(p => new string(p.ToArray()))) { yield return(GetTerm(term)); } }
public IEnumerable <DictionaryTerm> GetTerms(ITermMatcher matcher) { // var decodingMatcher = encoding.CreateMatcher(matcher.ToDfaMatcher(), maxTokenByteLength); foreach (var term in fst.Match(matcher.ToDfaMatcher()) .Select(p => new string(p.ToArray()))) { yield return(GetTerm(term)); } }
public IEnumerable <DictionaryTerm> GetTerms(ITermMatcher matcher) { var dfaMatcher = matcher.ToDfaMatcher(); foreach (var term in data) { if (dfaMatcher.IsMatch(term.Key)) { yield return(new DictionaryTerm(term.Key, term.Value)); } } }
public IEnumerable <DictionaryTerm> GetTerms(ITermMatcher matcher) { return(Dictionary.GetTerms(matcher)); }
IEnumerable <DictionaryTerm> IFullTextIndex.GetTerms(ITermMatcher matcher) { return(Dictionary.GetTerms(matcher)); }
public ReleaseRestrictionsSpecification(ITermMatcher termMatcher, IRestrictionService restrictionService, Logger logger) { _logger = logger; _restrictionService = restrictionService; _termMatcher = termMatcher; }