public static final class Lookup.LookupResult extends Object implements Comparable<Lookup.LookupResult>
Modifier and Type | Field and Description |
---|---|
Set<BytesRef> |
contexts
the key's contexts (null if not present)
|
Object |
highlightKey
Expert: custom Object to hold the result of a
highlighted suggestion.
|
CharSequence |
key
the key's text
|
BytesRef |
payload
the key's payload (null if not present)
|
long |
value
the key's weight
|
Constructor and Description |
---|
Lookup.LookupResult(CharSequence key,
long value)
Create a new result from a key+weight pair.
|
Lookup.LookupResult(CharSequence key,
long value,
BytesRef payload)
Create a new result from a key+weight+payload triple.
|
Lookup.LookupResult(CharSequence key,
long value,
BytesRef payload,
Set<BytesRef> contexts)
Create a new result from a key+weight+payload+contexts triple.
|
Lookup.LookupResult(CharSequence key,
long value,
Set<BytesRef> contexts)
Create a new result from a key+weight+contexts triple.
|
Lookup.LookupResult(CharSequence key,
Object highlightKey,
long value,
BytesRef payload)
Create a new result from a key+highlightKey+weight+payload triple.
|
Lookup.LookupResult(CharSequence key,
Object highlightKey,
long value,
BytesRef payload,
Set<BytesRef> contexts)
Create a new result from a key+highlightKey+weight+payload+contexts triple.
|
public final CharSequence key
public final Object highlightKey
public final long value
public final BytesRef payload
public Lookup.LookupResult(CharSequence key, long value)
public Lookup.LookupResult(CharSequence key, long value, BytesRef payload)
public Lookup.LookupResult(CharSequence key, Object highlightKey, long value, BytesRef payload)
public Lookup.LookupResult(CharSequence key, long value, BytesRef payload, Set<BytesRef> contexts)
public Lookup.LookupResult(CharSequence key, long value, Set<BytesRef> contexts)
public Lookup.LookupResult(CharSequence key, Object highlightKey, long value, BytesRef payload, Set<BytesRef> contexts)
public int compareTo(Lookup.LookupResult o)
compareTo
in interface Comparable<Lookup.LookupResult>
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.