public static final class ScoredDocument.Builder extends Document.Builder
| Modifier and Type | Method and Description |
|---|---|
ScoredDocument.Builder |
addExpression(Field expression)
Adds the expression to the builder.
|
ScoredDocument.Builder |
addScore(double score)
Adds the score to the builder.
|
ScoredDocument |
build()
Builds a valid document.
|
ScoredDocument.Builder |
setCursor(Cursor cursor)
Sets the cursor to the next set of results from search.
|
public ScoredDocument.Builder setCursor(Cursor cursor)
cursor - the Cursor for the next set of results
from searchpublic ScoredDocument.Builder addScore(double score)
score - the score to addpublic ScoredDocument.Builder addExpression(Field expression)
expression - the expression field to addjava.lang.IllegalArgumentException - if the expression field is invalidpublic ScoredDocument build()
build in class Document.Builderjava.lang.IllegalArgumentException - if the scored document built is
not valid