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 |
addPassagesFields(java.lang.String passagesFields)
Adds an passagesFields to passagesFields.
|
QueryOptions.Builder |
addReturnField(java.lang.String returnField)
Adds an returnField to returnFields.
|
QueryOptions.Builder |
addSort(java.lang.String sort)
Adds an sort to sort.
|
QueryOptions.Builder |
aggregation(java.lang.String aggregation)
Set the aggregation.
|
QueryOptions |
build()
Builds a QueryOptions.
|
QueryOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
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 |
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)
Set the passagesFields.
|
QueryOptions.Builder |
query(java.lang.String query)
Set the query.
|
QueryOptions.Builder |
returnFields(java.util.List<java.lang.String> returnFields)
Set the returnFields.
|
QueryOptions.Builder |
sort(java.util.List<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 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.util.List<java.lang.String> returnFields)
returnFields
- the returnFieldspublic QueryOptions.Builder offset(long offset)
offset
- the offsetpublic 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.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 deduplicateField