public static interface Document.Builder extends SdkPojo, CopyableBuilder<Document.Builder,Document>
| Modifier and Type | Method and Description |
|---|---|
Document.Builder |
body(String body)
The body text of the search service's document.
|
Document.Builder |
groupId(String groupId)
The optional group identifier of the document from the search service.
|
Document.Builder |
id(String id)
The identifier of the document from the search service.
|
Document.Builder |
originalScore(Float originalScore)
The original document score or rank from the search service.
|
Document.Builder |
title(String title)
The title of the search service's document.
|
Document.Builder |
tokenizedBody(Collection<String> tokenizedBody)
The body text of the search service's document represented as a list of tokens or words.
|
Document.Builder |
tokenizedBody(String... tokenizedBody)
The body text of the search service's document represented as a list of tokens or words.
|
Document.Builder |
tokenizedTitle(Collection<String> tokenizedTitle)
The title of the search service's document represented as a list of tokens or words.
|
Document.Builder |
tokenizedTitle(String... tokenizedTitle)
The title of the search service's document represented as a list of tokens or words.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDocument.Builder id(String id)
The identifier of the document from the search service.
id - The identifier of the document from the search service.Document.Builder groupId(String groupId)
The optional group identifier of the document from the search service. Documents with the same group identifier are grouped together and processed as one document within the service.
groupId - The optional group identifier of the document from the search service. Documents with the same group
identifier are grouped together and processed as one document within the service.Document.Builder title(String title)
The title of the search service's document.
title - The title of the search service's document.Document.Builder body(String body)
The body text of the search service's document.
body - The body text of the search service's document.Document.Builder tokenizedTitle(Collection<String> tokenizedTitle)
The title of the search service's document represented as a list of tokens or words. You must choose to
provide Title or TokenizedTitle. You cannot provide both.
tokenizedTitle - The title of the search service's document represented as a list of tokens or words. You must choose
to provide Title or TokenizedTitle. You cannot provide both.Document.Builder tokenizedTitle(String... tokenizedTitle)
The title of the search service's document represented as a list of tokens or words. You must choose to
provide Title or TokenizedTitle. You cannot provide both.
tokenizedTitle - The title of the search service's document represented as a list of tokens or words. You must choose
to provide Title or TokenizedTitle. You cannot provide both.Document.Builder tokenizedBody(Collection<String> tokenizedBody)
The body text of the search service's document represented as a list of tokens or words. You must choose to
provide Body or TokenizedBody. You cannot provide both.
tokenizedBody - The body text of the search service's document represented as a list of tokens or words. You must
choose to provide Body or TokenizedBody. You cannot provide both.Document.Builder tokenizedBody(String... tokenizedBody)
The body text of the search service's document represented as a list of tokens or words. You must choose to
provide Body or TokenizedBody. You cannot provide both.
tokenizedBody - The body text of the search service's document represented as a list of tokens or words. You must
choose to provide Body or TokenizedBody. You cannot provide both.Document.Builder originalScore(Float originalScore)
The original document score or rank from the search service. Amazon Kendra Intelligent Ranking gives the document a new score or rank based on its intelligent search algorithms.
originalScore - The original document score or rank from the search service. Amazon Kendra Intelligent Ranking gives
the document a new score or rank based on its intelligent search algorithms.Copyright © 2023. All rights reserved.