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