Class TokenStreamToAutomaton
Consumes a Token
Inheritance
Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net.dll
Syntax
public class TokenStreamToAutomaton : object
Constructors
| Improve this Doc View SourceTokenStreamToAutomaton()
Sole constructor.
Declaration
public TokenStreamToAutomaton()
Fields
| Improve this Doc View SourceHOLE
We add this arc to represent a hole.
Declaration
public const int HOLE = null
Field Value
Type | Description |
---|---|
System. |
POS_SEP
We create transition between two adjacent tokens.
Declaration
public const int POS_SEP = null
Field Value
Type | Description |
---|---|
System. |
Properties
| Improve this Doc View SourcePreservePositionIncrements
Whether to generate holes in the automaton for missing positions, true
by default.
Declaration
public virtual bool PreservePositionIncrements { get; set; }
Property Value
Type | Description |
---|---|
System. |
UnicodeArcs
Whether to make transition labels Unicode code points instead of UTF8 bytes,
false
by default
Declaration
public virtual bool UnicodeArcs { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceChangeToken(BytesRef)
Subclass & implement this if you need to change the token (such as escaping certain bytes) before it's turned into a graph.
Declaration
protected virtual BytesRef ChangeToken(BytesRef in)
Parameters
Type | Name | Description |
---|---|---|
Bytes |
in |
Returns
Type | Description |
---|---|
Bytes |
ToAutomaton(TokenStream)
Pulls the graph (including IPosition
Declaration
public virtual Automaton ToAutomaton(TokenStream in)
Parameters
Type | Name | Description |
---|---|---|
Token |
in |
Returns
Type | Description |
---|---|
Automaton |