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 | Method and Description |
---|---|
String |
description()
Gets the description.
|
String |
destinationField()
Gets the destinationField.
|
String |
enrichment()
Gets the enrichment.
|
Boolean |
ignoreDownstreamErrors()
Gets the ignoreDownstreamErrors.
|
Enrichment.Builder |
newBuilder()
New builder.
|
EnrichmentOptions |
options()
Gets the options.
|
Boolean |
overwrite()
Gets the overwrite.
|
String |
sourceField()
Gets the sourceField.
|
public Enrichment.Builder newBuilder()
public String description()
Describes what the enrichment step does.
public 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 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 Boolean overwrite()
Indicates that the enrichments will overwrite the destination_field field if it already exists.
public String enrichment()
Name of the enrichment service to call. The only supported option is `natural_language_understanding`. The `elements` option is deprecated and support ended on 10 July 2020.
The **options** object must contain Natural Language Understanding options.
public 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 that are specific to a particular enrichment.
The `elements` enrichment type is deprecated. Use the [Create a project](https://cloud.ibm.com/apidocs/discovery-data#createproject) method of the Discovery v2 API to create a `content_intelligence` project type instead.
Copyright © 2022 IBM Cloud. All rights reserved.