Class SynonymMap.Parser
Abstraction for parsing synonym files.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
    
    SynonymMap.Parser
      
      
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Lucene.Net.Analysis.Synonym
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public abstract class Parser : SynonymMap.BuilderConstructors
| Improve this Doc View SourceParser(Boolean, Analyzer)
Declaration
public Parser(bool dedup, Analyzer analyzer)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | dedup | |
| Lucene.Net.Analysis.Analyzer | analyzer | 
Methods
| Improve this Doc View SourceAnalyze(String, CharsRef)
Sugar: analyzes the text with the analyzer and separates by WORD_SEPARATOR. reuse and its chars must not be null.
Declaration
public virtual CharsRef Analyze(string text, CharsRef reuse)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | text | |
| Lucene.Net.Util.CharsRef | reuse | 
Returns
| Type | Description | 
|---|---|
| Lucene.Net.Util.CharsRef | 
Parse(TextReader)
Parse the given input, adding synonyms to the inherited SynonymMap.Builder.
Declaration
public abstract void Parse(TextReader in)Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.TextReader | in | The input to parse |