Method Update
Update(BytesRef, IEnumerable<BytesRef>, Int64, BytesRef)
Updates a previous suggestion, matching the exact same text as before. Use this to change the weight or payload of an already added suggstion. If you know this text is not already present you can use Add(BytesRef, IEnumerable<BytesRef>, Int64, BytesRef) instead. 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 Update(BytesRef text, IEnumerable<BytesRef> contexts, long weight, BytesRef payload)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | text | |
IEnumerable<BytesRef> | contexts | |
System.Int64 | weight | |
BytesRef | payload |