Package com.ibm.cloud.cloudant.v1.model
Class PostPartitionSearchOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.PostPartitionSearchOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PostPartitionSearchOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The postPartitionSearch options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PostPartitionSearchOptions.Builder
Builder.static interface
PostPartitionSearchOptions.Stale
Do not wait for the index to finish building to return results.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bookmark()
Gets the bookmark.String
db()
Gets the db.String
ddoc()
Gets the ddoc.List<String>
highlightFields()
Gets the highlightFields.Long
highlightNumber()
Gets the highlightNumber.String
highlightPostTag()
Gets the highlightPostTag.String
highlightPreTag()
Gets the highlightPreTag.Long
highlightSize()
Gets the highlightSize.Boolean
includeDocs()
Gets the includeDocs.List<String>
includeFields()
Gets the includeFields.String
index()
Gets the index.Long
limit()
Gets the limit.PostPartitionSearchOptions.Builder
newBuilder()
New builder.String
partitionKey()
Gets the partitionKey.String
query()
Gets the query.List<String>
sort()
Gets the sort.String
stale()
Gets the stale.
-
-
-
Method Detail
-
newBuilder
public PostPartitionSearchOptions.Builder newBuilder()
New builder.- Returns:
- a PostPartitionSearchOptions builder
-
db
public String db()
Gets the db. Path parameter to specify the database name.- Returns:
- the db
-
partitionKey
public String partitionKey()
Gets the partitionKey. Path parameter to specify the database partition key.- Returns:
- the partitionKey
-
ddoc
public String ddoc()
Gets the ddoc. Path parameter to specify the design document name. The design document name is the design document ID excluding the `_design/` prefix.- Returns:
- the ddoc
-
index
public String index()
Gets the index. Path parameter to specify the index name.- Returns:
- the index
-
query
public String query()
Gets the query. The Lucene query to execute.- Returns:
- the query
-
bookmark
public String bookmark()
Gets the bookmark. Opaque bookmark token used when paginating results.- Returns:
- the bookmark
-
highlightFields
public List<String> highlightFields()
Gets the highlightFields. Specifies which fields to highlight. If specified, the result object contains a highlights field with an entry for each specified field.- Returns:
- the highlightFields
-
highlightNumber
public Long highlightNumber()
Gets the highlightNumber. Number of fragments that are returned in highlights. If the search term occurs less often than the number of fragments that are specified, longer fragments are returned.- Returns:
- the highlightNumber
-
highlightPostTag
public String highlightPostTag()
Gets the highlightPostTag. A string that is inserted after the highlighted word in the highlights output.- Returns:
- the highlightPostTag
-
highlightPreTag
public String highlightPreTag()
Gets the highlightPreTag. A string that is inserted before the highlighted word in the highlights output.- Returns:
- the highlightPreTag
-
highlightSize
public Long highlightSize()
Gets the highlightSize. Number of characters in each fragment for highlights.- Returns:
- the highlightSize
-
includeDocs
public Boolean includeDocs()
Gets the includeDocs. Include the full content of the documents in the return.- Returns:
- the includeDocs
-
includeFields
public List<String> includeFields()
Gets the includeFields. A JSON array of field names to include in search results. Any fields that are included must be indexed with the store:true option. The default is all fields.- Returns:
- the includeFields
-
limit
public Long limit()
Gets the limit. Limit the number of the returned documents to the specified number.- Returns:
- the limit
-
sort
public List<String> sort()
Gets the sort. Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string of the form "fieldname<type>" or "-fieldname<type>" for descending order, where fieldname is the name of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is optional, and defaults to number. Some examples are "foo", "-foo", "bar<string>", "-foo<number>" and ["-foo<number>", "bar<string>"]. String fields that are used for sorting must not be analyzed fields. Fields that are used for sorting must be indexed by the same indexer that is used for the search query.- Returns:
- the sort
-
stale
public String stale()
Gets the stale. Do not wait for the index to finish building to return results.- Returns:
- the stale
-
-