@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetrieveRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RetrieveRequest() |
Modifier and Type | Method and Description |
---|---|
RetrieveRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
AttributeFilter |
getAttributeFilter()
Filters search results by document fields/attributes.
|
List<DocumentRelevanceConfiguration> |
getDocumentRelevanceOverrideConfigurations()
Overrides relevance tuning configurations of fields/attributes set at the index level.
|
String |
getIndexId()
The identifier of the index to retrieve relevant passages for the search.
|
Integer |
getPageNumber()
Retrieved relevant passages are returned in pages the size of the
PageSize parameter. |
Integer |
getPageSize()
Sets the number of retrieved relevant passages that are returned in each page of results.
|
String |
getQueryText()
The input query text to retrieve relevant passages for the search.
|
List<String> |
getRequestedDocumentAttributes()
A list of document fields/attributes to include in the response.
|
UserContext |
getUserContext()
The user context token or user and group information.
|
int |
hashCode() |
void |
setAttributeFilter(AttributeFilter attributeFilter)
Filters search results by document fields/attributes.
|
void |
setDocumentRelevanceOverrideConfigurations(Collection<DocumentRelevanceConfiguration> documentRelevanceOverrideConfigurations)
Overrides relevance tuning configurations of fields/attributes set at the index level.
|
void |
setIndexId(String indexId)
The identifier of the index to retrieve relevant passages for the search.
|
void |
setPageNumber(Integer pageNumber)
Retrieved relevant passages are returned in pages the size of the
PageSize parameter. |
void |
setPageSize(Integer pageSize)
Sets the number of retrieved relevant passages that are returned in each page of results.
|
void |
setQueryText(String queryText)
The input query text to retrieve relevant passages for the search.
|
void |
setRequestedDocumentAttributes(Collection<String> requestedDocumentAttributes)
A list of document fields/attributes to include in the response.
|
void |
setUserContext(UserContext userContext)
The user context token or user and group information.
|
String |
toString()
Returns a string representation of this object.
|
RetrieveRequest |
withAttributeFilter(AttributeFilter attributeFilter)
Filters search results by document fields/attributes.
|
RetrieveRequest |
withDocumentRelevanceOverrideConfigurations(Collection<DocumentRelevanceConfiguration> documentRelevanceOverrideConfigurations)
Overrides relevance tuning configurations of fields/attributes set at the index level.
|
RetrieveRequest |
withDocumentRelevanceOverrideConfigurations(DocumentRelevanceConfiguration... documentRelevanceOverrideConfigurations)
Overrides relevance tuning configurations of fields/attributes set at the index level.
|
RetrieveRequest |
withIndexId(String indexId)
The identifier of the index to retrieve relevant passages for the search.
|
RetrieveRequest |
withPageNumber(Integer pageNumber)
Retrieved relevant passages are returned in pages the size of the
PageSize parameter. |
RetrieveRequest |
withPageSize(Integer pageSize)
Sets the number of retrieved relevant passages that are returned in each page of results.
|
RetrieveRequest |
withQueryText(String queryText)
The input query text to retrieve relevant passages for the search.
|
RetrieveRequest |
withRequestedDocumentAttributes(Collection<String> requestedDocumentAttributes)
A list of document fields/attributes to include in the response.
|
RetrieveRequest |
withRequestedDocumentAttributes(String... requestedDocumentAttributes)
A list of document fields/attributes to include in the response.
|
RetrieveRequest |
withUserContext(UserContext userContext)
The user context token or user and group information.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setIndexId(String indexId)
The identifier of the index to retrieve relevant passages for the search.
indexId
- The identifier of the index to retrieve relevant passages for the search.public String getIndexId()
The identifier of the index to retrieve relevant passages for the search.
public RetrieveRequest withIndexId(String indexId)
The identifier of the index to retrieve relevant passages for the search.
indexId
- The identifier of the index to retrieve relevant passages for the search.public void setQueryText(String queryText)
The input query text to retrieve relevant passages for the search. Amazon Kendra truncates queries at 30 token
words, which excludes punctuation and stop words. Truncation still applies if you use Boolean or more advanced,
complex queries. For example, Timeoff AND October AND Category:HR
is counted as 3 tokens:
timeoff
, october
, hr
. For more information, see Searching
with advanced query syntax in the Amazon Kendra Developer Guide.
queryText
- The input query text to retrieve relevant passages for the search. Amazon Kendra truncates queries at 30
token words, which excludes punctuation and stop words. Truncation still applies if you use Boolean or
more advanced, complex queries. For example, Timeoff AND October AND Category:HR
is counted
as 3 tokens: timeoff
, october
, hr
. For more information, see
Searching with advanced query syntax in the Amazon Kendra Developer Guide.public String getQueryText()
The input query text to retrieve relevant passages for the search. Amazon Kendra truncates queries at 30 token
words, which excludes punctuation and stop words. Truncation still applies if you use Boolean or more advanced,
complex queries. For example, Timeoff AND October AND Category:HR
is counted as 3 tokens:
timeoff
, october
, hr
. For more information, see Searching
with advanced query syntax in the Amazon Kendra Developer Guide.
Timeoff AND October AND Category:HR
is counted
as 3 tokens: timeoff
, october
, hr
. For more information, see
Searching with advanced query syntax in the Amazon Kendra Developer Guide.public RetrieveRequest withQueryText(String queryText)
The input query text to retrieve relevant passages for the search. Amazon Kendra truncates queries at 30 token
words, which excludes punctuation and stop words. Truncation still applies if you use Boolean or more advanced,
complex queries. For example, Timeoff AND October AND Category:HR
is counted as 3 tokens:
timeoff
, october
, hr
. For more information, see Searching
with advanced query syntax in the Amazon Kendra Developer Guide.
queryText
- The input query text to retrieve relevant passages for the search. Amazon Kendra truncates queries at 30
token words, which excludes punctuation and stop words. Truncation still applies if you use Boolean or
more advanced, complex queries. For example, Timeoff AND October AND Category:HR
is counted
as 3 tokens: timeoff
, october
, hr
. For more information, see
Searching with advanced query syntax in the Amazon Kendra Developer Guide.public void setAttributeFilter(AttributeFilter attributeFilter)
Filters search results by document fields/attributes. You can only provide one attribute filter; however, the
AndAllFilters
, NotFilter
, and OrAllFilters
parameters contain a list of
other filters.
The AttributeFilter
parameter means you can create a set of filtering rules that a document must
satisfy to be included in the query results.
attributeFilter
- Filters search results by document fields/attributes. You can only provide one attribute filter; however,
the AndAllFilters
, NotFilter
, and OrAllFilters
parameters contain a
list of other filters.
The AttributeFilter
parameter means you can create a set of filtering rules that a document
must satisfy to be included in the query results.
public AttributeFilter getAttributeFilter()
Filters search results by document fields/attributes. You can only provide one attribute filter; however, the
AndAllFilters
, NotFilter
, and OrAllFilters
parameters contain a list of
other filters.
The AttributeFilter
parameter means you can create a set of filtering rules that a document must
satisfy to be included in the query results.
AndAllFilters
, NotFilter
, and OrAllFilters
parameters contain
a list of other filters.
The AttributeFilter
parameter means you can create a set of filtering rules that a document
must satisfy to be included in the query results.
public RetrieveRequest withAttributeFilter(AttributeFilter attributeFilter)
Filters search results by document fields/attributes. You can only provide one attribute filter; however, the
AndAllFilters
, NotFilter
, and OrAllFilters
parameters contain a list of
other filters.
The AttributeFilter
parameter means you can create a set of filtering rules that a document must
satisfy to be included in the query results.
attributeFilter
- Filters search results by document fields/attributes. You can only provide one attribute filter; however,
the AndAllFilters
, NotFilter
, and OrAllFilters
parameters contain a
list of other filters.
The AttributeFilter
parameter means you can create a set of filtering rules that a document
must satisfy to be included in the query results.
public List<String> getRequestedDocumentAttributes()
A list of document fields/attributes to include in the response. You can limit the response to include certain document fields. By default, all document fields are included in the response.
public void setRequestedDocumentAttributes(Collection<String> requestedDocumentAttributes)
A list of document fields/attributes to include in the response. You can limit the response to include certain document fields. By default, all document fields are included in the response.
requestedDocumentAttributes
- A list of document fields/attributes to include in the response. You can limit the response to include
certain document fields. By default, all document fields are included in the response.public RetrieveRequest withRequestedDocumentAttributes(String... requestedDocumentAttributes)
A list of document fields/attributes to include in the response. You can limit the response to include certain document fields. By default, all document fields are included in the response.
NOTE: This method appends the values to the existing list (if any). Use
setRequestedDocumentAttributes(java.util.Collection)
or
withRequestedDocumentAttributes(java.util.Collection)
if you want to override the existing values.
requestedDocumentAttributes
- A list of document fields/attributes to include in the response. You can limit the response to include
certain document fields. By default, all document fields are included in the response.public RetrieveRequest withRequestedDocumentAttributes(Collection<String> requestedDocumentAttributes)
A list of document fields/attributes to include in the response. You can limit the response to include certain document fields. By default, all document fields are included in the response.
requestedDocumentAttributes
- A list of document fields/attributes to include in the response. You can limit the response to include
certain document fields. By default, all document fields are included in the response.public List<DocumentRelevanceConfiguration> getDocumentRelevanceOverrideConfigurations()
Overrides relevance tuning configurations of fields/attributes set at the index level.
If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.
If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.
If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
public void setDocumentRelevanceOverrideConfigurations(Collection<DocumentRelevanceConfiguration> documentRelevanceOverrideConfigurations)
Overrides relevance tuning configurations of fields/attributes set at the index level.
If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.
If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
documentRelevanceOverrideConfigurations
- Overrides relevance tuning configurations of fields/attributes set at the index level.
If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.
If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
public RetrieveRequest withDocumentRelevanceOverrideConfigurations(DocumentRelevanceConfiguration... documentRelevanceOverrideConfigurations)
Overrides relevance tuning configurations of fields/attributes set at the index level.
If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.
If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
NOTE: This method appends the values to the existing list (if any). Use
setDocumentRelevanceOverrideConfigurations(java.util.Collection)
or
withDocumentRelevanceOverrideConfigurations(java.util.Collection)
if you want to override the existing
values.
documentRelevanceOverrideConfigurations
- Overrides relevance tuning configurations of fields/attributes set at the index level.
If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.
If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
public RetrieveRequest withDocumentRelevanceOverrideConfigurations(Collection<DocumentRelevanceConfiguration> documentRelevanceOverrideConfigurations)
Overrides relevance tuning configurations of fields/attributes set at the index level.
If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.
If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
documentRelevanceOverrideConfigurations
- Overrides relevance tuning configurations of fields/attributes set at the index level.
If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.
If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
public void setPageNumber(Integer pageNumber)
Retrieved relevant passages are returned in pages the size of the PageSize
parameter. By default,
Amazon Kendra returns the first page of results. Use this parameter to get result pages after the first one.
pageNumber
- Retrieved relevant passages are returned in pages the size of the PageSize
parameter. By
default, Amazon Kendra returns the first page of results. Use this parameter to get result pages after the
first one.public Integer getPageNumber()
Retrieved relevant passages are returned in pages the size of the PageSize
parameter. By default,
Amazon Kendra returns the first page of results. Use this parameter to get result pages after the first one.
PageSize
parameter. By
default, Amazon Kendra returns the first page of results. Use this parameter to get result pages after
the first one.public RetrieveRequest withPageNumber(Integer pageNumber)
Retrieved relevant passages are returned in pages the size of the PageSize
parameter. By default,
Amazon Kendra returns the first page of results. Use this parameter to get result pages after the first one.
pageNumber
- Retrieved relevant passages are returned in pages the size of the PageSize
parameter. By
default, Amazon Kendra returns the first page of results. Use this parameter to get result pages after the
first one.public void setPageSize(Integer pageSize)
Sets the number of retrieved relevant passages that are returned in each page of results. The default page size is 10. The maximum number of results returned is 100. If you ask for more than 100 results, only 100 are returned.
pageSize
- Sets the number of retrieved relevant passages that are returned in each page of results. The default page
size is 10. The maximum number of results returned is 100. If you ask for more than 100 results, only 100
are returned.public Integer getPageSize()
Sets the number of retrieved relevant passages that are returned in each page of results. The default page size is 10. The maximum number of results returned is 100. If you ask for more than 100 results, only 100 are returned.
public RetrieveRequest withPageSize(Integer pageSize)
Sets the number of retrieved relevant passages that are returned in each page of results. The default page size is 10. The maximum number of results returned is 100. If you ask for more than 100 results, only 100 are returned.
pageSize
- Sets the number of retrieved relevant passages that are returned in each page of results. The default page
size is 10. The maximum number of results returned is 100. If you ask for more than 100 results, only 100
are returned.public void setUserContext(UserContext userContext)
The user context token or user and group information.
userContext
- The user context token or user and group information.public UserContext getUserContext()
The user context token or user and group information.
public RetrieveRequest withUserContext(UserContext userContext)
The user context token or user and group information.
userContext
- The user context token or user and group information.public String toString()
toString
in class Object
Object.toString()
public RetrieveRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()