Method Add
Add(BytesRef, Int32)
Appends a single suggestion and its weight to the internal buffers.
Declaration
public virtual void Add(BytesRef utf8, int bucket)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | utf8 | The suggestion (utf8 representation) to be added. The content is copied and the object can be reused. |
System.Int32 | bucket | The bucket to place this suggestion in. Must be non-negative and smaller than the number of buckets passed in the constructor. Higher numbers indicate suggestions that should be presented before suggestions placed in smaller buckets. |