public static class QueryNoticesOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
QueryNoticesOptions.Builder()
Instantiates a new builder.
|
QueryNoticesOptions.Builder(java.lang.String environmentId,
java.lang.String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
QueryNoticesOptions.Builder |
addPassagesFields(java.lang.String passagesFields)
Adds an passagesFields to passagesFields.
|
QueryNoticesOptions.Builder |
addReturnField(java.lang.String returnField)
Adds an returnField to xReturn.
|
QueryNoticesOptions.Builder |
addSimilarDocumentIds(java.lang.String similarDocumentIds)
Adds an similarDocumentIds to similarDocumentIds.
|
QueryNoticesOptions.Builder |
addSimilarFields(java.lang.String similarFields)
Adds an similarFields to similarFields.
|
QueryNoticesOptions.Builder |
addSort(java.lang.String sort)
Adds an sort to sort.
|
QueryNoticesOptions.Builder |
aggregation(java.lang.String aggregation)
Set the aggregation.
|
QueryNoticesOptions |
build()
Builds a QueryNoticesOptions.
|
QueryNoticesOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
QueryNoticesOptions.Builder |
count(long count)
Set the count.
|
QueryNoticesOptions.Builder |
deduplicateField(java.lang.String deduplicateField)
Set the deduplicateField.
|
QueryNoticesOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
QueryNoticesOptions.Builder |
filter(java.lang.String filter)
Set the filter.
|
QueryNoticesOptions.Builder |
highlight(java.lang.Boolean highlight)
Set the highlight.
|
QueryNoticesOptions.Builder |
naturalLanguageQuery(java.lang.String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
QueryNoticesOptions.Builder |
offset(long offset)
Set the offset.
|
QueryNoticesOptions.Builder |
passages(java.lang.Boolean passages)
Set the passages.
|
QueryNoticesOptions.Builder |
passagesCharacters(long passagesCharacters)
Set the passagesCharacters.
|
QueryNoticesOptions.Builder |
passagesCount(long passagesCount)
Set the passagesCount.
|
QueryNoticesOptions.Builder |
passagesFields(java.util.List<java.lang.String> passagesFields)
Set the passagesFields.
|
QueryNoticesOptions.Builder |
query(java.lang.String query)
Set the query.
|
QueryNoticesOptions.Builder |
similar(java.lang.Boolean similar)
Set the similar.
|
QueryNoticesOptions.Builder |
similarDocumentIds(java.util.List<java.lang.String> similarDocumentIds)
Set the similarDocumentIds.
|
QueryNoticesOptions.Builder |
similarFields(java.util.List<java.lang.String> similarFields)
Set the similarFields.
|
QueryNoticesOptions.Builder |
sort(java.util.List<java.lang.String> sort)
Set the sort.
|
QueryNoticesOptions.Builder |
xReturn(java.util.List<java.lang.String> xReturn)
Set the xReturn.
|
public QueryNoticesOptions.Builder()
public QueryNoticesOptions.Builder(java.lang.String environmentId, java.lang.String collectionId)
environmentId
- the environmentIdcollectionId
- the collectionIdpublic QueryNoticesOptions build()
public QueryNoticesOptions.Builder addReturnField(java.lang.String returnField)
returnField
- the new returnFieldpublic QueryNoticesOptions.Builder addSort(java.lang.String sort)
sort
- the new sortpublic QueryNoticesOptions.Builder addPassagesFields(java.lang.String passagesFields)
passagesFields
- the new passagesFieldspublic QueryNoticesOptions.Builder addSimilarDocumentIds(java.lang.String similarDocumentIds)
similarDocumentIds
- the new similarDocumentIdspublic QueryNoticesOptions.Builder addSimilarFields(java.lang.String similarFields)
similarFields
- the new similarFieldspublic QueryNoticesOptions.Builder environmentId(java.lang.String environmentId)
environmentId
- the environmentIdpublic QueryNoticesOptions.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic QueryNoticesOptions.Builder filter(java.lang.String filter)
filter
- the filterpublic QueryNoticesOptions.Builder query(java.lang.String query)
query
- the querypublic QueryNoticesOptions.Builder naturalLanguageQuery(java.lang.String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic QueryNoticesOptions.Builder passages(java.lang.Boolean passages)
passages
- the passagespublic QueryNoticesOptions.Builder aggregation(java.lang.String aggregation)
aggregation
- the aggregationpublic QueryNoticesOptions.Builder count(long count)
count
- the countpublic QueryNoticesOptions.Builder xReturn(java.util.List<java.lang.String> xReturn)
xReturn
- the xReturnpublic QueryNoticesOptions.Builder offset(long offset)
offset
- the offsetpublic QueryNoticesOptions.Builder sort(java.util.List<java.lang.String> sort)
sort
- the sortpublic QueryNoticesOptions.Builder highlight(java.lang.Boolean highlight)
highlight
- the highlightpublic QueryNoticesOptions.Builder passagesFields(java.util.List<java.lang.String> passagesFields)
passagesFields
- the passagesFieldspublic QueryNoticesOptions.Builder passagesCount(long passagesCount)
passagesCount
- the passagesCountpublic QueryNoticesOptions.Builder passagesCharacters(long passagesCharacters)
passagesCharacters
- the passagesCharacterspublic QueryNoticesOptions.Builder deduplicateField(java.lang.String deduplicateField)
deduplicateField
- the deduplicateFieldpublic QueryNoticesOptions.Builder similar(java.lang.Boolean similar)
similar
- the similarpublic QueryNoticesOptions.Builder similarDocumentIds(java.util.List<java.lang.String> similarDocumentIds)
similarDocumentIds
- the similarDocumentIdspublic QueryNoticesOptions.Builder similarFields(java.util.List<java.lang.String> similarFields)
similarFields
- the similarFields