Constructor LookupResult
LookupResult(String, Int64)
Create a new result from a key+weight pair.
Declaration
public LookupResult(string key, long value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Int64 | value |
LookupResult(String, Int64, BytesRef)
Create a new result from a key+weight+payload triple.
Declaration
public LookupResult(string key, long value, BytesRef payload)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Int64 | value | |
BytesRef | payload |
LookupResult(String, Object, Int64, BytesRef)
Create a new result from a key+highlightKey+weight+payload triple.
Declaration
public LookupResult(string key, object highlightKey, long value, BytesRef payload)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Object | highlightKey | |
System.Int64 | value | |
BytesRef | payload |
LookupResult(String, Int64, BytesRef, IEnumerable<BytesRef>)
Create a new result from a key+weight+payload+contexts triple.
Declaration
public LookupResult(string key, long value, BytesRef payload, IEnumerable<BytesRef> contexts)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Int64 | value | |
BytesRef | payload | |
IEnumerable<BytesRef> | contexts |
LookupResult(String, Int64, HashSet<BytesRef>)
Create a new result from a key+weight+contexts triple.
Declaration
public LookupResult(string key, long value, HashSet<BytesRef> contexts)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Int64 | value | |
HashSet<BytesRef> | contexts |
LookupResult(String, Object, Int64, BytesRef, IEnumerable<BytesRef>)
Create a new result from a key+highlightKey+weight+payload+contexts triple.
Declaration
public LookupResult(string key, object highlightKey, long value, BytesRef payload, IEnumerable<BytesRef> contexts)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Object | highlightKey | |
System.Int64 | value | |
BytesRef | payload | |
IEnumerable<BytesRef> | contexts |