public class DefaultQueryParamsPassages
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
DefaultQueryParamsPassages.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long |
characters |
protected java.lang.Long |
count |
protected java.lang.Boolean |
enabled |
protected java.util.List<java.lang.String> |
fields |
protected java.lang.Long |
maxPerDocument |
protected java.lang.Boolean |
perDocument |
Modifier | Constructor and Description |
---|---|
protected |
DefaultQueryParamsPassages(DefaultQueryParamsPassages.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
characters()
Gets the characters.
|
java.lang.Long |
count()
Gets the count.
|
java.lang.Boolean |
enabled()
Gets the enabled.
|
java.util.List<java.lang.String> |
fields()
Gets the fields.
|
java.lang.Long |
maxPerDocument()
Gets the maxPerDocument.
|
DefaultQueryParamsPassages.Builder |
newBuilder()
New builder.
|
java.lang.Boolean |
perDocument()
Gets the perDocument.
|
protected java.lang.Boolean enabled
protected java.lang.Long count
protected java.util.List<java.lang.String> fields
protected java.lang.Long characters
@SerializedName(value="per_document") protected java.lang.Boolean perDocument
@SerializedName(value="max_per_document") protected java.lang.Long maxPerDocument
protected DefaultQueryParamsPassages(DefaultQueryParamsPassages.Builder builder)
public DefaultQueryParamsPassages.Builder newBuilder()
public java.lang.Boolean enabled()
When `true`, a passage search is performed by default.
public java.lang.Long count()
The number of passages to return.
public java.util.List<java.lang.String> fields()
An array of field names to perfom the passage search on.
public java.lang.Long characters()
The approximate number of characters that each returned passage will contain.
public java.lang.Boolean perDocument()
When `true` the number of passages that can be returned from a single document is restricted to the *max_per_document* value.
public java.lang.Long maxPerDocument()
The default maximum number of passages that can be taken from a single document as the result of a passage query.