public static class QueryOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String environmentId,
java.lang.String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
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.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.lang.String passagesFields)
Set the passagesFields.
|
QueryOptions.Builder |
query(java.lang.String query)
Set the query.
|
QueryOptions.Builder |
returnFields(java.lang.String returnFields)
Set the returnFields.
|
QueryOptions.Builder |
similar(java.lang.Boolean similar)
Set the similar.
|
QueryOptions.Builder |
similarDocumentIds(java.lang.String similarDocumentIds)
Set the similarDocumentIds.
|
QueryOptions.Builder |
similarFields(java.lang.String similarFields)
Set the similarFields.
|
QueryOptions.Builder |
sort(java.lang.String sort)
Set the sort.
|
public Builder()
public Builder(java.lang.String environmentId, java.lang.String collectionId)
environmentId
- the environmentIdcollectionId
- the collectionIdpublic QueryOptions build()
public 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 offset(long offset)
offset
- the offsetpublic QueryOptions.Builder sort(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 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 similar(java.lang.Boolean similar)
similar
- the similarpublic QueryOptions.Builder similarDocumentIds(java.lang.String similarDocumentIds)
similarDocumentIds
- the similarDocumentIdspublic QueryOptions.Builder similarFields(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