Class SynonymMap.Builder
Builds an FSTSynonymMap.
Call Add(CharsRef, CharsRef, Boolean) until you have added all the mappings, then call Build() to get an FSTSynonymMap @lucene.experimental
Inheritance
System.Object
SynonymMap.Builder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public class Builder
Constructors
Name | Description |
---|---|
Builder(Boolean) | If dedup is true then identical rules (same input, same output) will be added only once. |
Methods
Name | Description |
---|---|
Add(CharsRef, CharsRef, Boolean) | Add a phrase->phrase synonym mapping. Phrases are character sequences where words are separated with character zero (U+0000). Empty words (two U+0000s in a row) are not allowed in the input nor the output! |
Build() | Builds an SynonymMap and returns it. |
Join(String[], CharsRef) | Sugar: just joins the provided terms with WORD_SEPARATOR. reuse and its chars must not be null. |