Class SolrSynonymParser
Parser for the Solr synonyms format.
- Blank lines and lines starting with '#' are comments.
- Explicit mappings match any token sequence on the LHS of "=>"
and replace with all alternatives on the RHS. These types of mappings
ignore the expand parameter in the constructor.
Example:
i-pod, i pod => ipod
- Equivalent synonyms may be separated with commas and give
no explicit mapping. In this case the mapping behavior will
be taken from the expand parameter in the constructor. This allows
the same synonym file to be used in different synonym handling strategies.
Example:
ipod, i-pod, i pod
- Multiple synonym mapping entries are merged.
Example:
foo => foo bar foo => baz is equivalent to foo => foo bar, baz
Note
This API is experimental and might change in incompatible ways in the next release.
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 class SolrSynonymParser : SynonymMap.Parser
Constructors
| Improve this Doc View SourceSolrSynonymParser(Boolean, Boolean, Analyzer)
Declaration
public SolrSynonymParser(bool dedup, bool expand, Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | dedup | |
System.Boolean | expand | |
Lucene.Net.Analysis.Analyzer | analyzer |
Methods
| Improve this Doc View SourceParse(TextReader)
Declaration
public override void Parse(TextReader in)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | in |