public static class QueryOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String projectId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
QueryOptions.Builder |
addCollectionIds(String collectionIds)
Adds an collectionIds to collectionIds.
|
QueryOptions.Builder |
addReturnField(String returnField)
Adds an returnField to xReturn.
|
QueryOptions.Builder |
aggregation(String aggregation)
Set the aggregation.
|
QueryOptions |
build()
Builds a QueryOptions.
|
QueryOptions.Builder |
collectionIds(List<String> collectionIds)
Set the collectionIds.
|
QueryOptions.Builder |
count(long count)
Set the count.
|
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(QueryLargePassages passages)
Set the passages.
|
QueryOptions.Builder |
projectId(String projectId)
Set the projectId.
|
QueryOptions.Builder |
query(String query)
Set the query.
|
QueryOptions.Builder |
sort(String sort)
Set the sort.
|
QueryOptions.Builder |
spellingSuggestions(Boolean spellingSuggestions)
Set the spellingSuggestions.
|
QueryOptions.Builder |
suggestedRefinements(QueryLargeSuggestedRefinements suggestedRefinements)
Set the suggestedRefinements.
|
QueryOptions.Builder |
tableResults(QueryLargeTableResults tableResults)
Set the tableResults.
|
QueryOptions.Builder |
xReturn(List<String> xReturn)
Set the xReturn.
|
public Builder()
public Builder(String projectId)
projectId
- the projectIdpublic QueryOptions build()
public QueryOptions.Builder addCollectionIds(String collectionIds)
collectionIds
- the new collectionIdspublic QueryOptions.Builder addReturnField(String returnField)
returnField
- the new returnFieldpublic QueryOptions.Builder projectId(String projectId)
projectId
- the projectIdpublic QueryOptions.Builder collectionIds(List<String> collectionIds)
collectionIds
- the collectionIdspublic 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 aggregation(String aggregation)
aggregation
- the aggregationpublic QueryOptions.Builder count(long count)
count
- the countpublic QueryOptions.Builder xReturn(List<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 spellingSuggestions(Boolean spellingSuggestions)
spellingSuggestions
- the spellingSuggestionspublic QueryOptions.Builder tableResults(QueryLargeTableResults tableResults)
tableResults
- the tableResultspublic QueryOptions.Builder suggestedRefinements(QueryLargeSuggestedRefinements suggestedRefinements)
suggestedRefinements
- the suggestedRefinementspublic QueryOptions.Builder passages(QueryLargePassages passages)
passages
- the passagesCopyright © 2021 IBM Cloud. All rights reserved.