public final class ScoredDocument extends Document implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ScoredDocument.Builder
A builder of scored documents.
|
| Modifier and Type | Method and Description |
|---|---|
Cursor |
getCursor()
A
Cursor to be used continuing search after this search
result. |
java.util.List<Field> |
getExpressions()
The list of Field which are the result of any extra expressions
requested.
|
java.util.List<java.lang.Double> |
getSortScores()
Deprecated.
Use an explicit
FieldExpression in your QueryOptions instead. |
static ScoredDocument.Builder |
newBuilder() |
java.lang.String |
toString() |
equals, getFacetCount, getFacetNames, getFacets, getFacets, getFieldCount, getFieldNames, getFields, getFields, getId, getLocale, getOnlyFacet, getOnlyField, getRank, hashCode@Deprecated public java.util.List<java.lang.Double> getSortScores()
FieldExpression in your QueryOptions instead.The right way to retrieve a score is to use _score in a FieldExpression.
public java.util.List<Field> getExpressions()
FieldExpressions which are named snippet
expressions, then the returned expression will be a Field with the
name specified in the request and HTML value set to the snippet.public Cursor getCursor()
Cursor to be used continuing search after this search
result. For this field to be populated, use
QueryOptions.Builder.setCursor(Cursor), where the cursor is
created by Cursor.newBuilder().setPerResult(true).build().
Otherwise getCursor() will return null.public static ScoredDocument.Builder newBuilder()