Class DefaultQueryParamsPassages
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.DefaultQueryParamsPassages
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class DefaultQueryParamsPassages
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Default settings configuration for passage search options.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultQueryParamsPassages.BuilderBuilder. -
Method Summary
Modifier and Type Method Description Longcharacters()Gets the characters.Longcount()Gets the count.Booleanenabled()Gets the enabled.List<String>fields()Gets the fields.LongmaxPerDocument()Gets the maxPerDocument.DefaultQueryParamsPassages.BuildernewBuilder()New builder.BooleanperDocument()Gets the perDocument.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a DefaultQueryParamsPassages builder
-
enabled
Gets the enabled.When `true`, a passage search is performed by default.
- Returns:
- the enabled
-
count
Gets the count.The number of passages to return.
- Returns:
- the count
-
fields
Gets the fields.An array of field names to perform the passage search on.
- Returns:
- the fields
-
characters
Gets the characters.The approximate number of characters that each returned passage will contain.
- Returns:
- the characters
-
perDocument
Gets the perDocument.When `true` the number of passages that can be returned from a single document is restricted to the *max_per_document* value.
- Returns:
- the perDocument
-
maxPerDocument
Gets the maxPerDocument.The default maximum number of passages that can be taken from a single document as the result of a passage query.
- Returns:
- the maxPerDocument
-