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.
|
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 passagespublic QueryOptions.Builder similar(QueryLargeSimilar similar)
similar
- the similarCopyright © 2022 IBM Cloud. All rights reserved.