Interface Document.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Document.Builder,,Document> SdkBuilder<Document.Builder,,Document> SdkPojo
- Enclosing class:
Document
-
Method Summary
Modifier and TypeMethodDescriptionThe body text of the search service's document.The optional group identifier of the document from the search service.The identifier of the document from the search service.originalScore(Float originalScore) The original document score or rank from the search service.The title of the search service's document.tokenizedBody(String... tokenizedBody) The body text of the search service's document represented as a list of tokens or words.tokenizedBody(Collection<String> tokenizedBody) The body text of the search service's document represented as a list of tokens or words.tokenizedTitle(String... tokenizedTitle) The title of the search service's document represented as a list of tokens or words.tokenizedTitle(Collection<String> tokenizedTitle) The title of the search service's document represented as a list of tokens or words.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The identifier of the document from the search service.
- Parameters:
id- The identifier of the document from the search service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
The title of the search service's document.
- Parameters:
title- The title of the search service's document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
The body text of the search service's document.
- Parameters:
body- The body text of the search service's document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenizedTitle
The title of the search service's document represented as a list of tokens or words. You must choose to provide
TitleorTokenizedTitle. You cannot provide both.- Parameters:
tokenizedTitle- The title of the search service's document represented as a list of tokens or words. You must choose to provideTitleorTokenizedTitle. You cannot provide both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenizedTitle
The title of the search service's document represented as a list of tokens or words. You must choose to provide
TitleorTokenizedTitle. You cannot provide both.- Parameters:
tokenizedTitle- The title of the search service's document represented as a list of tokens or words. You must choose to provideTitleorTokenizedTitle. You cannot provide both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenizedBody
The body text of the search service's document represented as a list of tokens or words. You must choose to provide
BodyorTokenizedBody. You cannot provide both.- Parameters:
tokenizedBody- The body text of the search service's document represented as a list of tokens or words. You must choose to provideBodyorTokenizedBody. You cannot provide both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenizedBody
The body text of the search service's document represented as a list of tokens or words. You must choose to provide
BodyorTokenizedBody. You cannot provide both.- Parameters:
tokenizedBody- The body text of the search service's document represented as a list of tokens or words. You must choose to provideBodyorTokenizedBody. You cannot provide both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-