public void SetMatchmakerToDictionary(bool singleMatchmaker = true) { if (singleMatchmaker || Matchmakers == null) { Matchmakers = new List <IKeywordMatchmaker>(); } Matchmakers.Add(new DictionaryMatchmaker(toLowerWordsInDictionary)); compositeMatchmaker = new KeywordMatchmaker(Matchmakers); }
public void SetMatchmakerToContainsMatch(bool singleMatchmaker = true) { if (singleMatchmaker || Matchmakers == null) { Matchmakers = new List <IKeywordMatchmaker>(); } Matchmakers.Add(new ContainsMatchmaker(toLowerCategorizedKeywordsToBeRemoved)); compositeMatchmaker = new KeywordMatchmaker(Matchmakers); }
public void SetMatchmakerToLucenePortStem(bool singleMatchmaker = true) { if (singleMatchmaker || Matchmakers == null) { Matchmakers = new List <IKeywordMatchmaker>(); } Matchmakers.Add(new LucenePorterStemMatchmaker(toLowerUncategorizedKeywordsToBeRemoved)); compositeMatchmaker = new KeywordMatchmaker(Matchmakers); }
public KeywordFilterer(IEnumerable <FilteredKeyword> uncategorizedKeywordsToBeRemoved, bool usePluralizationService = true) { suspectKeywordsList = new List <string>(); StoreListOfUncategorizedKeywordsToBeRemoved(uncategorizedKeywordsToBeRemoved); StoreListOfWordsInDictionary(null); StoreListOfCategorizedKeywordsToBeRemoved(null); Matchmakers = new List <IKeywordMatchmaker> { new ExactMatchKeywordMatchmaker(toLowerUncategorizedKeywordsToBeRemoved) //new FuzzyContainsKeywordMatchmaker(toLowerUncategorizedKeywordsToBeRemoved), //new StrictContainsKeywordMatchmaker(toLowerUncategorizedKeywordsToBeRemoved), //new ContainsSansSpaceAndNumberKeywordMatchmaker(toLowerUncategorizedKeywordsToBeRemoved, usePluralizationService) }; compositeMatchmaker = new KeywordMatchmaker(Matchmakers); }