public static class DefaultQueryParams.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
public DefaultQueryParams build()
public DefaultQueryParams.Builder addCollectionIds(String collectionIds)
collectionIds
- the new collectionIdspublic DefaultQueryParams.Builder addXReturn(String xReturn)
xReturn
- the new xReturnpublic DefaultQueryParams.Builder collectionIds(List<String> collectionIds)
collectionIds
- the collectionIdspublic DefaultQueryParams.Builder passages(DefaultQueryParamsPassages passages)
passages
- the passagespublic DefaultQueryParams.Builder tableResults(DefaultQueryParamsTableResults tableResults)
tableResults
- the tableResultspublic DefaultQueryParams.Builder aggregation(String aggregation)
aggregation
- the aggregationpublic DefaultQueryParams.Builder suggestedRefinements(DefaultQueryParamsSuggestedRefinements suggestedRefinements)
suggestedRefinements
- the suggestedRefinementspublic DefaultQueryParams.Builder spellingSuggestions(Boolean spellingSuggestions)
spellingSuggestions
- the spellingSuggestionspublic DefaultQueryParams.Builder highlight(Boolean highlight)
highlight
- the highlightpublic DefaultQueryParams.Builder count(long count)
count
- the countpublic DefaultQueryParams.Builder sort(String sort)
sort
- the sortpublic DefaultQueryParams.Builder xReturn(List<String> xReturn)
xReturn
- the xReturnCopyright © 2023 IBM Cloud. All rights reserved.