Method Add
Add(BytesRef, IEnumerable<BytesRef>, Int64, BytesRef)
Adds a new suggestion. Be sure to use Update(BytesRef, IEnumerable<BytesRef>, Int64, BytesRef) instead if you want to replace a previous suggestion. After adding or updating a batch of new suggestions, you must call Refresh() in the end in order to see the suggestions in DoLookup(String, IEnumerable<BytesRef>, Int32, Boolean, Boolean)
Declaration
public virtual void Add(BytesRef text, IEnumerable<BytesRef> contexts, long weight, BytesRef payload)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | text | |
IEnumerable<BytesRef> | contexts | |
System.Int64 | weight | |
BytesRef | payload |