public static class QueryOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
QueryOptions.Builder()
Instantiates a new builder.
|
QueryOptions.Builder(java.lang.String environmentId,
java.lang.String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
QueryOptions.Builder |
addCollectionIds(java.lang.String collectionIds)
Deprecated.
collectionIds is now of type String, so this method will be removed in the next major release
|
QueryOptions.Builder |
addPassagesFields(java.lang.String passagesFields)
Deprecated.
passagesFields is now of type String, so this method will be removed in the next major release
|
QueryOptions.Builder |
addReturnField(java.lang.String returnField)
Deprecated.
returnFields is now of type String, so this method will be removed in the next major release
|
QueryOptions.Builder |
addSimilarDocumentIds(java.lang.String similarDocumentIds)
Deprecated.
similarDocumentIds is now of type String, so this method will be removed in the next major release
|
QueryOptions.Builder |
addSimilarFields(java.lang.String similarFields)
Deprecated.
similarFields is now of type String, so this method will be removed in the next major release
|
QueryOptions.Builder |
addSort(java.lang.String sort)
Deprecated.
sort is now of type String, so this method will be removed in the next major release
|
QueryOptions.Builder |
aggregation(java.lang.String aggregation)
Set the aggregation.
|
QueryOptions.Builder |
bias(java.lang.String bias)
Set the bias.
|
QueryOptions |
build()
Builds a QueryOptions.
|
QueryOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
QueryOptions.Builder |
collectionIds(java.util.List<java.lang.String> collectionIds)
Deprecated.
This parameter is now officially of type String. Please set this as a comma-separated String with
the other setter.
|
QueryOptions.Builder |
collectionIds(java.lang.String collectionIds)
Set the collectionIds.
|
QueryOptions.Builder |
count(long count)
Set the count.
|
QueryOptions.Builder |
deduplicate(java.lang.Boolean deduplicate)
Set the deduplicate.
|
QueryOptions.Builder |
deduplicateField(java.lang.String deduplicateField)
Set the deduplicateField.
|
QueryOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
QueryOptions.Builder |
filter(java.lang.String filter)
Set the filter.
|
QueryOptions.Builder |
highlight(java.lang.Boolean highlight)
Set the highlight.
|
QueryOptions.Builder |
loggingOptOut(java.lang.Boolean loggingOptOut)
Set the loggingOptOut.
|
QueryOptions.Builder |
naturalLanguageQuery(java.lang.String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
QueryOptions.Builder |
offset(long offset)
Set the offset.
|
QueryOptions.Builder |
passages(java.lang.Boolean passages)
Set the passages.
|
QueryOptions.Builder |
passagesCharacters(long passagesCharacters)
Set the passagesCharacters.
|
QueryOptions.Builder |
passagesCount(long passagesCount)
Set the passagesCount.
|
QueryOptions.Builder |
passagesFields(java.util.List<java.lang.String> passagesFields)
Deprecated.
This parameter is now officially of type String. Please set this as a comma-separated String with
the other setter.
|
QueryOptions.Builder |
passagesFields(java.lang.String passagesFields)
Set the passagesFields.
|
QueryOptions.Builder |
query(java.lang.String query)
Set the query.
|
QueryOptions.Builder |
returnFields(java.util.List<java.lang.String> returnFields)
Deprecated.
This parameter is now officially of type String. Please set this as a comma-separated String with
the other setter.
|
QueryOptions.Builder |
returnFields(java.lang.String returnFields)
Set the returnFields.
|
QueryOptions.Builder |
similar(java.lang.Boolean similar)
Set the similar.
|
QueryOptions.Builder |
similarDocumentIds(java.util.List<java.lang.String> similarDocumentIds)
Deprecated.
This parameter is now officially of type String. Please set this as a comma-separated String with
the other setter.
|
QueryOptions.Builder |
similarDocumentIds(java.lang.String similarDocumentIds)
Set the similarDocumentIds.
|
QueryOptions.Builder |
similarFields(java.util.List<java.lang.String> similarFields)
Deprecated.
This parameter is now officially of type String. Please set this as a comma-separated String with
the other setter.
|
QueryOptions.Builder |
similarFields(java.lang.String similarFields)
Set the similarFields.
|
QueryOptions.Builder |
sort(java.util.List<java.lang.String> sort)
Deprecated.
This parameter is now officially of type String. Please set this as a comma-separated String with
the other setter.
|
QueryOptions.Builder |
sort(java.lang.String sort)
Set the sort.
|
public QueryOptions.Builder()
public QueryOptions.Builder(java.lang.String environmentId, java.lang.String collectionId)
environmentId
- the environmentIdcollectionId
- the collectionIdpublic QueryOptions build()
public QueryOptions.Builder addReturnField(java.lang.String returnField)
returnField
- the new returnFieldpublic QueryOptions.Builder addSort(java.lang.String sort)
sort
- the new sortpublic QueryOptions.Builder addPassagesFields(java.lang.String passagesFields)
passagesFields
- the new passagesFieldspublic QueryOptions.Builder addCollectionIds(java.lang.String collectionIds)
collectionIds
- the new collectionIdspublic QueryOptions.Builder addSimilarDocumentIds(java.lang.String similarDocumentIds)
similarDocumentIds
- the new similarDocumentIdspublic QueryOptions.Builder addSimilarFields(java.lang.String similarFields)
similarFields
- the new similarFieldspublic QueryOptions.Builder environmentId(java.lang.String environmentId)
environmentId
- the environmentIdpublic QueryOptions.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic QueryOptions.Builder filter(java.lang.String filter)
filter
- the filterpublic QueryOptions.Builder query(java.lang.String query)
query
- the querypublic QueryOptions.Builder naturalLanguageQuery(java.lang.String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic QueryOptions.Builder passages(java.lang.Boolean passages)
passages
- the passagespublic QueryOptions.Builder aggregation(java.lang.String aggregation)
aggregation
- the aggregationpublic QueryOptions.Builder count(long count)
count
- the countpublic QueryOptions.Builder returnFields(java.lang.String returnFields)
returnFields
- the returnFieldspublic QueryOptions.Builder returnFields(java.util.List<java.lang.String> returnFields)
returnFields
- the returnFieldspublic QueryOptions.Builder offset(long offset)
offset
- the offsetpublic QueryOptions.Builder sort(java.lang.String sort)
sort
- the sortpublic QueryOptions.Builder sort(java.util.List<java.lang.String> sort)
sort
- the sortpublic QueryOptions.Builder highlight(java.lang.Boolean highlight)
highlight
- the highlightpublic QueryOptions.Builder passagesFields(java.lang.String passagesFields)
passagesFields
- the passagesFieldspublic QueryOptions.Builder passagesFields(java.util.List<java.lang.String> passagesFields)
passagesFields
- the passagesFieldspublic QueryOptions.Builder passagesCount(long passagesCount)
passagesCount
- the passagesCountpublic QueryOptions.Builder passagesCharacters(long passagesCharacters)
passagesCharacters
- the passagesCharacterspublic QueryOptions.Builder deduplicate(java.lang.Boolean deduplicate)
deduplicate
- the deduplicatepublic QueryOptions.Builder deduplicateField(java.lang.String deduplicateField)
deduplicateField
- the deduplicateFieldpublic QueryOptions.Builder collectionIds(java.lang.String collectionIds)
collectionIds
- the collectionIdspublic QueryOptions.Builder collectionIds(java.util.List<java.lang.String> collectionIds)
collectionIds
- the collectionIdspublic QueryOptions.Builder similar(java.lang.Boolean similar)
similar
- the similarpublic QueryOptions.Builder similarDocumentIds(java.lang.String similarDocumentIds)
similarDocumentIds
- the similarDocumentIdspublic QueryOptions.Builder similarDocumentIds(java.util.List<java.lang.String> similarDocumentIds)
similarDocumentIds
- the similarDocumentIdspublic QueryOptions.Builder similarFields(java.lang.String similarFields)
similarFields
- the similarFieldspublic QueryOptions.Builder similarFields(java.util.List<java.lang.String> similarFields)
similarFields
- the similarFieldspublic QueryOptions.Builder bias(java.lang.String bias)
bias
- the biaspublic QueryOptions.Builder loggingOptOut(java.lang.Boolean loggingOptOut)
loggingOptOut
- the loggingOptOut