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