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