public class Enrichment
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
Enrichment.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
description |
protected java.lang.String |
destinationField |
protected java.lang.String |
enrichment |
protected java.lang.Boolean |
ignoreDownstreamErrors |
protected EnrichmentOptions |
options |
protected java.lang.Boolean |
overwrite |
protected java.lang.String |
sourceField |
Modifier | Constructor and Description |
---|---|
protected |
Enrichment(Enrichment.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
description()
Gets the description.
|
java.lang.String |
destinationField()
Gets the destinationField.
|
java.lang.String |
enrichment()
Gets the enrichment.
|
java.lang.Boolean |
ignoreDownstreamErrors()
Gets the ignoreDownstreamErrors.
|
Enrichment.Builder |
newBuilder()
New builder.
|
EnrichmentOptions |
options()
Gets the options.
|
java.lang.Boolean |
overwrite()
Gets the overwrite.
|
java.lang.String |
sourceField()
Gets the sourceField.
|
protected java.lang.String description
@SerializedName(value="destination_field") protected java.lang.String destinationField
@SerializedName(value="source_field") protected java.lang.String sourceField
protected java.lang.Boolean overwrite
protected java.lang.String enrichment
@SerializedName(value="ignore_downstream_errors") protected java.lang.Boolean ignoreDownstreamErrors
protected EnrichmentOptions options
protected Enrichment(Enrichment.Builder builder)
public Enrichment.Builder newBuilder()
public java.lang.String description()
Describes what the enrichment step does.
public java.lang.String destinationField()
Field where enrichments will be stored. This field must already exist or be at most 1 level deeper than an existing field. For example, if `text` is a top-level field with no sub-fields, `text.foo` is a valid destination but `text.foo.bar` is not.
public java.lang.String sourceField()
Field to be enriched.
Arrays can be specified as the **source_field** if the **enrichment** service for this enrichment is set to `natural_language_undstanding`.
public java.lang.Boolean overwrite()
Indicates that the enrichments will overwrite the destination_field field if it already exists.
public java.lang.String enrichment()
Name of the enrichment service to call. Current options are `natural_language_understanding` and `elements`.
When using `natual_language_understanding`, the **options** object must contain Natural Language Understanding options.
When using `elements` the **options** object must contain Element Classification options. Additionally, when using the `elements` enrichment the configuration specified and files ingested must meet all the criteria specified in [the documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-element-classification#element-classification).
public java.lang.Boolean ignoreDownstreamErrors()
If true, then most errors generated during the enrichment process will be treated as warnings and will not cause the document to fail processing.
public EnrichmentOptions options()
Options which are specific to a particular enrichment.