public static class DocumentRank.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DocumentRank |
build() |
DocumentRank.Builder |
copy(DocumentRank model) |
DocumentRank.Builder |
document(Document document) |
DocumentRank.Builder |
index(Integer index)
Index of the document in documents array.
|
DocumentRank.Builder |
relevanceScore(Double relevanceScore)
The relevance score for the document at that index.
|
public DocumentRank.Builder index(Integer index)
Index of the document in documents array.
index
- the value to setpublic DocumentRank.Builder relevanceScore(Double relevanceScore)
The relevance score for the document at that index.
relevanceScore
- the value to setpublic DocumentRank.Builder document(Document document)
public DocumentRank build()
public DocumentRank.Builder copy(DocumentRank model)
Copyright © 2016–2025. All rights reserved.