Package com.ibm.cloud.cloudant.v1.model
Class PostSearchOptions.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.PostSearchOptions.Builder
- Enclosing class:
 PostSearchOptions
Builder.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionAdds a new element to counts.addDrilldown(List<String> drilldown) Adds a new element to drilldown.addGroupSort(String groupSort) Adds a new element to groupSort.addHighlightFields(String highlightFields) Adds a new element to highlightFields.addIncludeFields(String includeFields) Adds a new element to includeFields.Adds a new element to sort.Set the bookmark.build()Builds a PostSearchOptions.Set the counts.Set the db.Set the ddoc.Set the drilldown.groupField(String groupField) Set the groupField.groupLimit(long groupLimit) Set the groupLimit.Set the groupSort.highlightFields(List<String> highlightFields) Set the highlightFields.highlightNumber(long highlightNumber) Set the highlightNumber.highlightPostTag(String highlightPostTag) Set the highlightPostTag.highlightPreTag(String highlightPreTag) Set the highlightPreTag.highlightSize(long highlightSize) Set the highlightSize.includeDocs(Boolean includeDocs) Set the includeDocs.includeFields(List<String> includeFields) Set the includeFields.Set the index.limit(long limit) Set the limit.Set the query.Set the ranges.Set the sort.Set the stale. 
- 
Constructor Details
- 
Builder
public Builder()Instantiates a new builder. - 
Builder
Instantiates a new builder with required properties.- Parameters:
 db- the dbddoc- the ddocindex- the indexquery- the query
 
 - 
 - 
Method Details
- 
build
Builds a PostSearchOptions.- Returns:
 - the new PostSearchOptions instance
 
 - 
addHighlightFields
Adds a new element to highlightFields.- Parameters:
 highlightFields- the new element to be added- Returns:
 - the PostSearchOptions builder
 
 - 
addIncludeFields
Adds a new element to includeFields.- Parameters:
 includeFields- the new element to be added- Returns:
 - the PostSearchOptions builder
 
 - 
addSort
Adds a new element to sort.- Parameters:
 sort- the new element to be added- Returns:
 - the PostSearchOptions builder
 
 - 
addCounts
Adds a new element to counts.- Parameters:
 counts- the new element to be added- Returns:
 - the PostSearchOptions builder
 
 - 
addDrilldown
Adds a new element to drilldown.- Parameters:
 drilldown- the new element to be added- Returns:
 - the PostSearchOptions builder
 
 - 
addGroupSort
Adds a new element to groupSort.- Parameters:
 groupSort- the new element to be added- Returns:
 - the PostSearchOptions builder
 
 - 
db
Set the db.- Parameters:
 db- the db- Returns:
 - the PostSearchOptions builder
 
 - 
ddoc
Set the ddoc.- Parameters:
 ddoc- the ddoc- Returns:
 - the PostSearchOptions builder
 
 - 
index
Set the index.- Parameters:
 index- the index- Returns:
 - the PostSearchOptions builder
 
 - 
query
Set the query.- Parameters:
 query- the query- Returns:
 - the PostSearchOptions builder
 
 - 
bookmark
Set the bookmark.- Parameters:
 bookmark- the bookmark- Returns:
 - the PostSearchOptions builder
 
 - 
highlightFields
Set the highlightFields. Existing highlightFields will be replaced.- Parameters:
 highlightFields- the highlightFields- Returns:
 - the PostSearchOptions builder
 
 - 
highlightNumber
Set the highlightNumber.- Parameters:
 highlightNumber- the highlightNumber- Returns:
 - the PostSearchOptions builder
 
 - 
highlightPostTag
Set the highlightPostTag.- Parameters:
 highlightPostTag- the highlightPostTag- Returns:
 - the PostSearchOptions builder
 
 - 
highlightPreTag
Set the highlightPreTag.- Parameters:
 highlightPreTag- the highlightPreTag- Returns:
 - the PostSearchOptions builder
 
 - 
highlightSize
Set the highlightSize.- Parameters:
 highlightSize- the highlightSize- Returns:
 - the PostSearchOptions builder
 
 - 
includeDocs
Set the includeDocs.- Parameters:
 includeDocs- the includeDocs- Returns:
 - the PostSearchOptions builder
 
 - 
includeFields
Set the includeFields. Existing includeFields will be replaced.- Parameters:
 includeFields- the includeFields- Returns:
 - the PostSearchOptions builder
 
 - 
limit
Set the limit.- Parameters:
 limit- the limit- Returns:
 - the PostSearchOptions builder
 
 - 
sort
Set the sort. Existing sort will be replaced.- Parameters:
 sort- the sort- Returns:
 - the PostSearchOptions builder
 
 - 
stale
Set the stale.- Parameters:
 stale- the stale- Returns:
 - the PostSearchOptions builder
 
 - 
counts
Set the counts. Existing counts will be replaced.- Parameters:
 counts- the counts- Returns:
 - the PostSearchOptions builder
 
 - 
drilldown
Set the drilldown. Existing drilldown will be replaced.- Parameters:
 drilldown- the drilldown- Returns:
 - the PostSearchOptions builder
 
 - 
groupField
Set the groupField.- Parameters:
 groupField- the groupField- Returns:
 - the PostSearchOptions builder
 
 - 
groupLimit
Set the groupLimit.- Parameters:
 groupLimit- the groupLimit- Returns:
 - the PostSearchOptions builder
 
 - 
groupSort
Set the groupSort. Existing groupSort will be replaced.- Parameters:
 groupSort- the groupSort- Returns:
 - the PostSearchOptions builder
 
 - 
ranges
Set the ranges.- Parameters:
 ranges- the ranges- Returns:
 - the PostSearchOptions builder
 
 
 -