public class QueryLargePassages
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
QueryLargePassages.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 |
QueryLargePassages(QueryLargePassages.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.
|
QueryLargePassages.Builder |
newBuilder()
New builder.
|
java.lang.Boolean |
perDocument()
Gets the perDocument.
|
protected java.lang.Boolean enabled
@SerializedName(value="per_document") protected java.lang.Boolean perDocument
@SerializedName(value="max_per_document") protected java.lang.Long maxPerDocument
protected java.util.List<java.lang.String> fields
protected java.lang.Long count
protected java.lang.Long characters
protected QueryLargePassages(QueryLargePassages.Builder builder)
public QueryLargePassages.Builder newBuilder()
public java.lang.Boolean enabled()
A passages query that returns the most relevant passages from the results.
public java.lang.Boolean perDocument()
When `true`, passages will be returned within their respective result.
public java.lang.Long maxPerDocument()
Maximum number of passages to return per result.
public java.util.List<java.lang.String> fields()
A list of fields that passages are drawn from. If this parameter not specified, then all top-level fields are included.
public java.lang.Long count()
The maximum number of passages to return. The search returns fewer passages if the requested total is not found. The maximum is `100`.
public java.lang.Long characters()
The approximate number of characters that any one passage will have.