Class Lookup.LookupResult
Result of a lookup.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
Lookup.LookupResult
Namespace: Lucene.Net.Search.Suggest
Assembly: Lucene.Net.Suggest.dll
Syntax
public sealed class LookupResult : IComparable<Lookup.LookupResult>
Constructors
| Improve this Doc View SourceLookupResult(String, Int64)
Create a new result from a key+weight pair.
Declaration
public LookupResult(string key, long value)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | |
System. |
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. |
key | |
System. |
value | |
Bytes |
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. |
key | |
System. |
value | |
Bytes |
payload | |
IEnumerable<Bytes |
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. |
key | |
System. |
value | |
Hash |
contexts |
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. |
key | |
System. |
highlightKey | |
System. |
value | |
Bytes |
payload |
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. |
key | |
System. |
highlightKey | |
System. |
value | |
Bytes |
payload | |
IEnumerable<Bytes |
contexts |
Properties
| Improve this Doc View SourceContexts
the key's contexts (null if not present)
Declaration
public IEnumerable<BytesRef> Contexts { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Bytes |
HighlightKey
Expert: custom Object to hold the result of a highlighted suggestion.
Declaration
public object HighlightKey { get; }
Property Value
Type | Description |
---|---|
System. |
Key
the key's text
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
System. |
Payload
the key's payload (null if not present)
Declaration
public BytesRef Payload { get; }
Property Value
Type | Description |
---|---|
Bytes |
Value
the key's weight
Declaration
public long Value { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceCompareTo(Lookup.LookupResult)
Compare alphabetically.
Declaration
public int CompareTo(Lookup.LookupResult o)
Parameters
Type | Name | Description |
---|---|---|
Lookup. |
o |
Returns
Type | Description |
---|---|
System. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |