public FullTextIndex(string[] stopWords, Dictionary <char, char> normalizationTable)
 {
     normalizer      = new Normalizer(normalizationTable);
     stopWordsFilter = new StopWordsFilter(new HashSet <string>(stopWords), normalizer);
     documents       = new Dictionary <string, Document>();
     parser          = new TextParser();
 }
Exemple #2
0
 public TagManager(IPorterStemmerFilter porterStemmerFilter, IStopWordsFilter stopWordsFilter,
                   ITagService tagService)
 {
     this.porterStemmerFilter = porterStemmerFilter;
     this.stopWordsFilter     = stopWordsFilter;
     this.tagService          = tagService;
 }
 public FullTextIndex()
 {
     stopWordsFilter = new StopWordsFilter();
     normalizer      = new Normalizer();
     documents       = new Dictionary <string, Document>();
     parser          = new TextParser();
 }