org.apache.lucene.search.suggest
public static final class Lookup.LookupResult extends Object implements Comparable<Lookup.LookupResult>
Modifier and Type | Field and Description |
---|---|
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.
|
public final CharSequence key
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 int compareTo(Lookup.LookupResult o)
compareTo
in interface Comparable<Lookup.LookupResult>
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.