public static class FederatedQueryOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
FederatedQueryOptions.Builder()
Instantiates a new builder.
|
FederatedQueryOptions.Builder(java.lang.String environmentId,
java.lang.String collectionIds)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
FederatedQueryOptions.Builder |
aggregation(java.lang.String aggregation)
Set the aggregation.
|
FederatedQueryOptions.Builder |
bias(java.lang.String bias)
Set the bias.
|
FederatedQueryOptions |
build()
Builds a FederatedQueryOptions.
|
FederatedQueryOptions.Builder |
collectionIds(java.lang.String collectionIds)
Set the collectionIds.
|
FederatedQueryOptions.Builder |
count(long count)
Set the count.
|
FederatedQueryOptions.Builder |
deduplicate(java.lang.Boolean deduplicate)
Set the deduplicate.
|
FederatedQueryOptions.Builder |
deduplicateField(java.lang.String deduplicateField)
Set the deduplicateField.
|
FederatedQueryOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
FederatedQueryOptions.Builder |
filter(java.lang.String filter)
Set the filter.
|
FederatedQueryOptions.Builder |
highlight(java.lang.Boolean highlight)
Set the highlight.
|
FederatedQueryOptions.Builder |
naturalLanguageQuery(java.lang.String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
FederatedQueryOptions.Builder |
offset(long offset)
Set the offset.
|
FederatedQueryOptions.Builder |
passages(java.lang.Boolean passages)
Set the passages.
|
FederatedQueryOptions.Builder |
passagesCharacters(long passagesCharacters)
Set the passagesCharacters.
|
FederatedQueryOptions.Builder |
passagesCount(long passagesCount)
Set the passagesCount.
|
FederatedQueryOptions.Builder |
passagesFields(java.lang.String passagesFields)
Set the passagesFields.
|
FederatedQueryOptions.Builder |
query(java.lang.String query)
Set the query.
|
FederatedQueryOptions.Builder |
similar(java.lang.Boolean similar)
Set the similar.
|
FederatedQueryOptions.Builder |
similarDocumentIds(java.lang.String similarDocumentIds)
Set the similarDocumentIds.
|
FederatedQueryOptions.Builder |
similarFields(java.lang.String similarFields)
Set the similarFields.
|
FederatedQueryOptions.Builder |
sort(java.lang.String sort)
Set the sort.
|
FederatedQueryOptions.Builder |
xReturn(java.lang.String xReturn)
Set the xReturn.
|
FederatedQueryOptions.Builder |
xWatsonLoggingOptOut(java.lang.Boolean xWatsonLoggingOptOut)
Set the xWatsonLoggingOptOut.
|
public FederatedQueryOptions.Builder()
public FederatedQueryOptions.Builder(java.lang.String environmentId, java.lang.String collectionIds)
environmentId
- the environmentIdcollectionIds
- the collectionIdspublic FederatedQueryOptions build()
public FederatedQueryOptions.Builder environmentId(java.lang.String environmentId)
environmentId
- the environmentIdpublic FederatedQueryOptions.Builder collectionIds(java.lang.String collectionIds)
collectionIds
- the collectionIdspublic FederatedQueryOptions.Builder filter(java.lang.String filter)
filter
- the filterpublic FederatedQueryOptions.Builder query(java.lang.String query)
query
- the querypublic FederatedQueryOptions.Builder naturalLanguageQuery(java.lang.String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic FederatedQueryOptions.Builder passages(java.lang.Boolean passages)
passages
- the passagespublic FederatedQueryOptions.Builder aggregation(java.lang.String aggregation)
aggregation
- the aggregationpublic FederatedQueryOptions.Builder count(long count)
count
- the countpublic FederatedQueryOptions.Builder xReturn(java.lang.String xReturn)
xReturn
- the xReturnpublic FederatedQueryOptions.Builder offset(long offset)
offset
- the offsetpublic FederatedQueryOptions.Builder sort(java.lang.String sort)
sort
- the sortpublic FederatedQueryOptions.Builder highlight(java.lang.Boolean highlight)
highlight
- the highlightpublic FederatedQueryOptions.Builder passagesFields(java.lang.String passagesFields)
passagesFields
- the passagesFieldspublic FederatedQueryOptions.Builder passagesCount(long passagesCount)
passagesCount
- the passagesCountpublic FederatedQueryOptions.Builder passagesCharacters(long passagesCharacters)
passagesCharacters
- the passagesCharacterspublic FederatedQueryOptions.Builder deduplicate(java.lang.Boolean deduplicate)
deduplicate
- the deduplicatepublic FederatedQueryOptions.Builder deduplicateField(java.lang.String deduplicateField)
deduplicateField
- the deduplicateFieldpublic FederatedQueryOptions.Builder similar(java.lang.Boolean similar)
similar
- the similarpublic FederatedQueryOptions.Builder similarDocumentIds(java.lang.String similarDocumentIds)
similarDocumentIds
- the similarDocumentIdspublic FederatedQueryOptions.Builder similarFields(java.lang.String similarFields)
similarFields
- the similarFieldspublic FederatedQueryOptions.Builder bias(java.lang.String bias)
bias
- the biaspublic FederatedQueryOptions.Builder xWatsonLoggingOptOut(java.lang.Boolean xWatsonLoggingOptOut)
xWatsonLoggingOptOut
- the xWatsonLoggingOptOut