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.
  • Method Details

    • newBuilder

      New builder.
      Returns:
      a DefaultQueryParamsPassages builder
    • enabled

      public Boolean enabled()
      Gets the enabled.

      When `true`, a passage search is performed by default.

      Returns:
      the enabled
    • count

      public Long count()
      Gets the count.

      The number of passages to return.

      Returns:
      the count
    • fields

      public List<String> fields()
      Gets the fields.

      An array of field names to perform the passage search on.

      Returns:
      the fields
    • characters

      public Long characters()
      Gets the characters.

      The approximate number of characters that each returned passage will contain.

      Returns:
      the characters
    • perDocument

      public Boolean 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

      public Long 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