public static class QueryNoticesOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String environmentId,
String collectionId)
Instantiates a new builder with required properties.
|
public QueryNoticesOptions build()
public QueryNoticesOptions.Builder addReturnField(String returnField)
returnField
- the new returnFieldpublic QueryNoticesOptions.Builder addSort(String sort)
sort
- the new sortpublic QueryNoticesOptions.Builder addPassagesFields(String passagesFields)
passagesFields
- the new passagesFieldspublic QueryNoticesOptions.Builder addSimilarDocumentIds(String similarDocumentIds)
similarDocumentIds
- the new similarDocumentIdspublic QueryNoticesOptions.Builder addSimilarFields(String similarFields)
similarFields
- the new similarFieldspublic QueryNoticesOptions.Builder environmentId(String environmentId)
environmentId
- the environmentIdpublic QueryNoticesOptions.Builder collectionId(String collectionId)
collectionId
- the collectionIdpublic QueryNoticesOptions.Builder filter(String filter)
filter
- the filterpublic QueryNoticesOptions.Builder query(String query)
query
- the querypublic QueryNoticesOptions.Builder naturalLanguageQuery(String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic QueryNoticesOptions.Builder passages(Boolean passages)
passages
- the passagespublic QueryNoticesOptions.Builder aggregation(String aggregation)
aggregation
- the aggregationpublic QueryNoticesOptions.Builder count(long count)
count
- the countpublic QueryNoticesOptions.Builder xReturn(List<String> xReturn)
xReturn
- the xReturnpublic QueryNoticesOptions.Builder offset(long offset)
offset
- the offsetpublic QueryNoticesOptions.Builder sort(List<String> sort)
sort
- the sortpublic QueryNoticesOptions.Builder highlight(Boolean highlight)
highlight
- the highlightpublic QueryNoticesOptions.Builder passagesFields(List<String> passagesFields)
passagesFields
- the passagesFieldspublic QueryNoticesOptions.Builder passagesCount(long passagesCount)
passagesCount
- the passagesCountpublic QueryNoticesOptions.Builder passagesCharacters(long passagesCharacters)
passagesCharacters
- the passagesCharacterspublic QueryNoticesOptions.Builder deduplicateField(String deduplicateField)
deduplicateField
- the deduplicateFieldpublic QueryNoticesOptions.Builder similar(Boolean similar)
similar
- the similarpublic QueryNoticesOptions.Builder similarDocumentIds(List<String> similarDocumentIds)
similarDocumentIds
- the similarDocumentIdspublic QueryNoticesOptions.Builder similarFields(List<String> similarFields)
similarFields
- the similarFieldsCopyright © 2023 IBM Cloud. All rights reserved.