Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the CustomAnalyzer class.
 /// </summary>
 public CustomAnalyzer(string name, TokenizerName tokenizer, IList <TokenFilterName> tokenFilters = default(IList <TokenFilterName>), IList <CharFilterName> charFilters = default(IList <CharFilterName>))
     : base(name)
 {
     Tokenizer    = tokenizer;
     TokenFilters = tokenFilters;
     CharFilters  = charFilters;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the AnalyzeRequest class.
 /// </summary>
 public AnalyzeRequest(string text, AnalyzerName analyzer = default(AnalyzerName), TokenizerName tokenizer = default(TokenizerName), IList <TokenFilterName> tokenFilters = default(IList <TokenFilterName>), IList <CharFilterName> charFilters = default(IList <CharFilterName>))
 {
     Text         = text;
     Analyzer     = analyzer;
     Tokenizer    = tokenizer;
     TokenFilters = tokenFilters;
     CharFilters  = charFilters;
 }