Exemple #1
0
 protected MtgQueryParser(MtgAnalyzer analyzer, IDocumentAdapterBase adapter, string lang)
     : base(LuceneVersion.LUCENE_48, "*", analyzer)
 {
     _adapter                  = adapter;
     Language                  = lang;
     FuzzyMinSim               = 0.5f;
     AllowLeadingWildcard      = true;
     AutoGeneratePhraseQueries = true;
 }
Exemple #2
0
 public SearchResultHighlighter(
     ISearchSubsystemBase searchSubsystem,
     IDocumentAdapterBase adapter,
     IKeywordHighlighter keywordHighlighter)
 {
     _searchSubsystem    = searchSubsystem;
     _adapter            = adapter;
     _keywordHighlighter = keywordHighlighter;
     _analyzer           = new MtgAnalyzer(adapter);
 }