Class SynonymMap
A map of synonyms, keys and values are phrases.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Analysis.Synonym
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class SynonymMap
Constructors
SynonymMap(FST<BytesRef>, BytesRefHash, int)
A map of synonyms, keys and values are phrases.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public SynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext)
Parameters
Type | Name | Description |
---|---|---|
FST<BytesRef> | fst | |
BytesRefHash | words | |
int | maxHorizontalContext |
Fields
WORD_SEPARATOR
for multiword support, you must separate words with this separator
Declaration
public const char WORD_SEPARATOR = '\0'
Field Value
Type | Description |
---|---|
char |
Properties
Fst
map<input word, list<ord>>
Declaration
public FST<BytesRef> Fst { get; }
Property Value
Type | Description |
---|---|
FST<BytesRef> |
MaxHorizontalContext
maxHorizontalContext: maximum context we need on the tokenstream
Declaration
public int MaxHorizontalContext { get; }
Property Value
Type | Description |
---|---|
int |
Words
map<ord, outputword>
Declaration
public BytesRefHash Words { get; }
Property Value
Type | Description |
---|---|
BytesRefHash |