Constructor FSTCompletionBuilder
FSTCompletionBuilder()
Creates an FSTCompletion with default options: 10 buckets, exact match
promoted to first position and InMemorySorter with a comparer obtained from
Declaration
public FSTCompletionBuilder()
FSTCompletionBuilder(Int32, IBytesRefSorter, Int32)
Creates an FSTCompletion with the specified options.
Declaration
public FSTCompletionBuilder(int buckets, IBytesRefSorter sorter, int shareMaxTailLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | buckets | The number of buckets for weight discretization. Buckets are used in Add(BytesRef, Int32) and must be smaller than the number given here. |
IBytesRefSorter | sorter | IBytesRefSorter used for re-sorting input for the automaton.
For large inputs, use on-disk sorting implementations. The sorter
is closed automatically in Build() if it implements
|
System.Int32 | shareMaxTailLength | Max shared suffix sharing length. See the description of this parameter in |