Class ZCL_IBMC_DISCOVERY_V2
public inheriting from zcl_ibmc_service_ext create public
Documentation
Discovery v2
IBM Watson® Discovery is a cognitive search and content analytics engine that you can add to applications to identify patterns, trends and actionable insights to drive better decision-making. Securely unify structured and unstructured data with pre-enriched content, and use a simplified query language to eliminate the need for manual filtering of results.Types
Visibility and Level | Name | Documentation |
---|---|---|
public | t_analyzed_document (structured type) | An object that contains the converted document and any identified enrichments. Root-level fields from the original file are returned also. |
public | t_analyzed_result (structured type) | Result of the document analysis. |
public | t_classifier_federated_model (structured type) | An object with details for creating federated document classifier models. |
public | t_classifier_model_evaluation (structured type) | An object that contains information about a trained document classifier model. |
public | t_cllctn_dtls_smrt_doc_undrst1 (structured type) | An object that describes the Smart Document Understanding model for a collection. |
public | t_cmpnnt_settings_fields_shown (structured type) | Fields shown in the results section of the UI. |
public | t_cmpnnt_sttngs_flds_shwn_body (structured type) | Body label. |
public | t_cmpnnt_sttngs_flds_shwn_ttl (structured type) | Title label. |
public | t_collection (structured type) | A collection for storing documents. |
public | t_collection_details (structured type) | A collection for storing documents. |
public | t_collection_enrichment (structured type) | An object describing an enrichment for a collection. |
public | t_completions (structured type) | An object that contains an array of autocompletion suggestions. |
public | t_component_settings_aggr (structured type) | Display settings for aggregations. |
public | t_component_settings_response (structured type) | The default component settings for this project. |
public | t_create_document_classifier (structured type) | An object that manages the settings and data that is required to train a document classification model. |
public | t_create_enrichment (structured type) | Information about a specific enrichment. |
public | t_curated_results (structured type) | Object that contains an array of curated results. |
public | t_curation (structured type) | Curated query and responses. |
public | t_curations (structured type) | Array of queries with curated responses for the specified project. |
public | t_curation_result (structured type) | Result information for a curated query. |
public | t_curation_status (structured type) | Curation status information. |
public | t_default_query_params (structured type) | Default query parameters for this project. |
public | t_delete_document_response (structured type) | Information returned when a document is deleted. |
public | t_dflt_qry_params_tab_results (structured type) | Default project query settings for table results. |
public | t_dflt_qry_prms_sggstd_rfnmnts (structured type) | Object that contains suggested refinement settings. **Note**: The `suggested_refinements` parameter that identified dynamic facets from the data is deprecated. |
public | t_dflt_query_params_passages (structured type) | Default settings configuration for passage search options. |
public | t_document_accepted (structured type) | Information returned after an uploaded document is accepted. |
public | t_document_attribute (structured type) | List of document attributes. |
public | t_document_classifier (structured type) | Information about a document classifier. |
public | t_document_classifiers (structured type) | An object that contains a list of document classifier definitions. |
public | t_document_classifier_model (structured type) | Information about a document classifier model. |
public | t_document_classifier_models (structured type) | An object that contains a list of document classifier model definitions. |
public | t_document_details (structured type) | Information about a document. |
public | t_document_details_children (structured type) | Information about the child documents that are generated from a single document during ingestion or other processing. |
public | t_doc_classifier_enrichment (structured type) | An object that describes enrichments that are applied to the training and test data that is used by the document classifier. |
public | t_doc_classifier_model_train (structured type) | An object that contains configuration settings for a document classifier model training run. |
public | t_enrichment (structured type) | Information about a specific enrichment. |
public | t_enrichments (structured type) | An object that contains an array of enrichment definitions. |
public | t_enrichment_options (structured type) | An object that contains options for the current enrichment. Starting with version `2020-08-30`, the enrichment options are not included in responses from the List Enrichments method. |
public | t_error_response (structured type) | Error response information. |
public | t_expansion (structured type) | An expansion definition. Each object respresents one set of expandable strings. For example, you could have expansions for the word `hot` in one object, and expansions for the word `cold` in another. Follow these guidelines when you add terms:* Specify the terms in lowercase. Lowercase terms expand to uppercase. * Multiword terms are supported only in bidirectional expansions. * Do not specify a term that is specified in the stop words list for the collection. |
public | t_expansions (structured type) | The query expansion definitions for the specified collection. |
public | t_field (structured type) | Object that contains field details. |
public | t_list_collections_response (structured type) | Response object that contains an array of collection details. |
public | t_list_documents_response (structured type) | Response object that contains an array of documents. |
public | t_list_fields_response (structured type) | The list of fetched fields. The fields are returned using a fully qualified name format, however, the format differs slightly from that used by the query operations. * Fields which contain nested objects are assigned a type of "nested". * Fields which belong to a nested object are prefixed with `.properties` (for example, `warnings.properties.severity` means that the `warnings` object has a property called `severity`). |
public | t_list_projects_response (structured type) | A list of projects in this instance. |
public | t_mdl_evaluation_macro_average (structured type) | A macro-average computes metric independently for each class and then takes the average. Class refers to the classification label that is specified in the **answer_field**. |
public | t_mdl_evaluation_micro_average (structured type) | A micro-average aggregates the contributions of all classes to compute the average metric. Classes refers to the classification labels that are specified in the **answer_field**. |
public | t_notice (structured type) | A notice produced for the collection. |
public | t_per_class_model_evaluation (structured type) | An object that measures the metrics from a training run for each classification label separately. |
public | t_prjct_lst_dtls_rlvncy_trnng1 (structured type) | Relevancy training status information for this project. |
public | t_project_creation (structured type) | Detailed information about the specified project. |
public | t_project_creation_details (structured type) | Details about a specific project. |
public | t_project_details (structured type) | Detailed information about the specified project. |
public | t_project_list_details (structured type) | Details about a specific project. |
public | t_project_name (structured type) | Object that contains a new name for the specified project. |
public | t_project_rel_train_status (structured type) | Relevancy training status information for this project. |
public | t_qry_aggr_qry_clcltn_aggr (structured type) | Returns a scalar calculation across all documents for the field specified. Possible calculations include min, max, sum, average, and unique_count. |
public | t_qry_aggr_qry_histogram_aggr (structured type) | Numeric interval segments to categorize documents by using field values from a single numeric field to describe the category. |
public | t_qry_aggr_qry_timeslice_aggr (structured type) | A specialized histogram aggregation that uses dates to create interval segments. |
public | t_qry_aggr_query_group_by_aggr (structured type) | Separates document results into groups that meet the conditions you specify. |
public | t_qry_aggr_query_top_hits_aggr (structured type) | Returns the top documents ranked by the score of the query. |
public | t_qry_lrg_sggstd_refinements (structured type) | Configuration for suggested refinements. **Note**: The **suggested_refinements** parameter that identified dynamic facets from the data is deprecated. |
public | t_query_aggregation type jsonobject | An object that defines how to aggregate query results. |
public | t_query_aggr_query_filter_aggr (structured type) | A modifier that narrows the document set of the subaggregations it precedes. |
public | t_query_aggr_query_nested_aggr (structured type) | A restriction that alters the document set that is used by the aggregations that it precedes. Subsequent aggregations are applied to nested documents from the specified field. |
public | t_query_aggr_query_pair_aggr (structured type) | Calculates relevancy values using combinations of document sets from results of the specified pair of aggregations. |
public | t_query_aggr_query_term_aggr (structured type) | Returns results from the field that is specified. |
public | t_query_aggr_query_topic_aggr (structured type) | Detects how much the frequency of a given facet value deviates from the expected average for the given time period. This aggregation type does not use data from previous time periods. It calculates an index by using the averages of frequency counts of other facet values for the given time period. |
public | t_query_aggr_query_trend_aggr (structured type) | Detects sharp and unexpected changes in the frequency of a facet or facet value over time based on the past history of frequency changes of the facet value. |
public | t_query_calculation_aggr (structured type) | Returns a scalar calculation across all documents for the field specified. Possible calculations include min, max, sum, average, and unique_count. |
public | t_query_filter_aggregation (structured type) | A modifier that narrows the document set of the subaggregations it precedes. |
public | t_query_group_by_aggregation (structured type) | Separates document results into groups that meet the conditions you specify. |
public | t_query_group_by_aggr_result (structured type) | Result group for the `group_by` aggregation. |
public | t_query_histogram_aggregation (structured type) | Numeric interval segments to categorize documents by using field values from a single numeric field to describe the category. |
public | t_query_histogram_aggr_result (structured type) | Histogram numeric interval result. |
public | t_query_large (structured type) | Object that describes a long query. |
public | t_query_large_passages (structured type) | Configuration for passage retrieval. |
public | t_query_large_similar (structured type) | Finds results from documents that are similar to documents of interest. Use this parameter to add a *More like these* function to your search. You can include this parameter with or without a **query**, **filter** or **natural_language_query** parameter. |
public | t_query_large_table_results (structured type) | Configuration for table retrieval. |
public | t_query_nested_aggregation (structured type) | A restriction that alters the document set that is used by the aggregations that it precedes. Subsequent aggregations are applied to nested documents from the specified field. |
public | t_query_notices_response (structured type) | Object that contains notice query results. |
public | t_query_pair_aggregation (structured type) | Calculates relevancy values using combinations of document sets from results of the specified pair of aggregations. |
public | t_query_pair_aggr_result (structured type) | Result for the `pair` aggregation. |
public | t_query_response (structured type) | A response that contains the documents and aggregations for the query. |
public | t_query_response_passage (structured type) | A passage query response. |
public | t_query_result (structured type) | Result document for the specified query. |
public | t_query_result_metadata (structured type) | Metadata of a query result. |
public | t_query_result_passage (structured type) | A passage query result. |
public | t_query_sub_aggregation type jsonobject | Aggregation results. For more information about supported aggregation types, see the [product documentation](/docs/discovery-data?topic=discovery-data-query-aggregations). |
public | t_query_suggested_refinement (structured type) | A suggested additional query term or terms user to filter results. **Note**: The `suggested_refinements` parameter is deprecated. |
public | t_query_table_result (structured type) | A tables whose content or context match a search query. |
public | t_query_term_aggregation (structured type) | Returns results from the field that is specified. |
public | t_query_term_aggr_result (structured type) | Top value result for the `term` aggregation. |
public | t_query_timeslice_aggregation (structured type) | A specialized histogram aggregation that uses dates to create interval segments. |
public | t_query_timeslice_aggr_result (structured type) | A timeslice interval segment. |
public | t_query_topic_aggregation (structured type) | Detects how much the frequency of a given facet value deviates from the expected average for the given time period. This aggregation type does not use data from previous time periods. It calculates an index by using the averages of frequency counts of other facet values for the given time period. |
public | t_query_topic_aggr_result (structured type) | Result for the `topic` aggregation. |
public | t_query_top_hits_aggregation (structured type) | Returns the top documents ranked by the score of the query. |
public | t_query_top_hits_aggr_result (structured type) | A query response that contains the matching documents for the preceding aggregations. |
public | t_query_trend_aggregation (structured type) | Detects sharp and unexpected changes in the frequency of a facet or facet value over time based on the past history of frequency changes of the facet value. |
public | t_query_trend_aggr_result (structured type) | Result for the `trend` aggregation. |
public | t_result_passage_answer (structured type) | Object that contains a potential answer to the specified query. |
public | t_retrieval_details (structured type) | An object contain retrieval type information. |
public | t_stop_word_list (structured type) | List of words to filter out of text that is submitted in queries. |
public | t_table_body_cells (structured type) | Cells that are not table header, column header, or row header cells. |
public | t_table_cell_key (structured type) | A key in a key-value pair. |
public | t_table_cell_value type standard table of t_table_cell_values with non-unique default key | A list of values in a key-value pair. |
public | t_table_cell_values (structured type) | A value in a key-value pair. |
public | t_table_column_headers (structured type) | Column-level cells, each applicable as a header to other cells in the same column as itself, of the current table. |
public | t_table_column_header_ids (structured type) | An array of values, each being the `id` value of a column header that is applicable to the current cell. |
public | t_table_column_header_texts (structured type) | An array of values, each being the `text` value of a column header that is applicable to the current cell. |
public | t_table_element_location (structured type) | The numeric location of the identified element in the document, represented with two integers labeled `begin` and `end`. |
public | t_table_headers (structured type) | The contents of the current table's header. |
public | t_table_key_value_pairs (structured type) | Key-value pairs detected across cell boundaries. |
public | t_table_result_table (structured type) | Full table object retrieved from Table Understanding Enrichment. |
public | t_table_row_headers (structured type) | Row-level cells, each applicable as a header to other cells in the same row as itself, of the current table. |
public | t_table_row_header_ids (structured type) | An array of values, each being the `id` value of a row header that is applicable to this body cell. |
public | t_table_row_header_texts (structured type) | An array of values, each being the `text` value of a row header that is applicable to this body cell. |
public | t_table_text_location (structured type) | Text and associated location within a table. |
public | t_tab_column_header_texts_norm (structured type) | If you provide customization input, the normalized version of the column header texts according to the customization; otherwise, the same value as `column_header_texts`. |
public | t_tab_row_header_texts_norm (structured type) | If you provide customization input, the normalized version of the row header texts according to the customization; otherwise, the same value as `row_header_texts`. |
public | t_training_example (structured type) | Object that contains example response details for a training query. |
public | t_training_query (structured type) | Object that contains training query details. |
public | t_training_query_set (structured type) | Object specifying the training queries contained in the identified training set. |
public | t_update_collection (structured type) | An object that represents the collection to be updated. |
public | t_update_document_classifier (structured type) | An object that contains a new name or description for a document classifier, updated training data, or new or updated test data. |
public | t_update_enrichment (structured type) | An object that contains a new name and description for an enrichment. |
public | t_upd_doc_classifier_model (structured type) | An object that contains a new name or description for a document classifier model. |
Constants
Visibility and Level | Name | Documentation |
---|---|---|
public static | c_abapname_dictionary (structured type) | Map ABAP identifiers to service identifiers. |
public static | c_required_fields (structured type) | List of required fields per type. |
Methods
Visibility and Level | Name | Documentation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public instance |
| Add a document Add a document to a collection with optional metadata.Returns immediately after the system has accepted the document for processing. Use this method to upload a file to the collection. You cannot use this method to crawl an external data source. * For a list of supported file types, see the [product documentation](/docs/discovery-data?topic=discovery-data-collections#supportedf iletypes). * You must provide document content, metadata, or both. If the request is missing both document content and metadata, it is rejected. * You can set the **Content-Type** parameter on the **file** part to indicate the media type of the document. If the **Content-Type** parameter is missing or is one of the generic media types (for example, `application/octet-stream`), then the service attempts to automatically detect the document's media type. * If the document is uploaded to a collection that shares its data with another collection, the **X-Watson-Discovery-Force** header must be set to `true`. * In curl requests only, you can assign an ID to a document that you add by appending the ID to the endpoint (`/v2/projects/{project_id}/collections/{collection_id}/doc uments/{document_id}`). If a document already exists with the specified ID, it is replaced. For more information about how certain file types and field names are handled when a file is added to a collection, see the [product documentation](/docs/discovery-data?topic=discovery-data-index-overview#field-n ame-limits). Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Analyze a Document Process a document and return it for realtime use. Supports JSON files only.The file is not stored in the collection, but is processed according to the collection's configuration settings. To get results, enrichments must be applied to a field in the collection that also exists in the file that you want to analyze. For example, to analyze text in a `Quote` field, you must apply enrichments to the `Quote` field in the collection configuration. Then, when you analyze the file, the text in the `Quote` field is analyzed and results are written to a field named `enriched_Quote`. **Note:** This method is supported with Enterprise plan deployments and installed deployments only. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Create a collection Create a new collection in the specified project.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Create a document classifier Create a document classifier. You can use the API to create a document classifier in any project type. After you create a document classifier, you can use the Enrichments API to create a classifier enrichment, and then the Collections API to apply the enrichment to a collection in the project.**Note:** This method is supported on installed instances (IBM Cloud Pak for Data) or IBM Cloud-managed Premium or Enterprise plan instances. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Create an enrichment Create an enrichment for use with the specified project. To apply the enrichment to a collection in the project, use the [Collections API](/apidocs/discovery-data#createcollection).Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Create or update an expansion list Creates or replaces the expansion list for this collection. An expansion list introduces alternative wording for key terms that are mentioned in your collection. By identifying synonyms or common misspellings, you expand the scope of a query beyond exact matches. The maximum number of expanded terms allowed per collection is 5,000.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Create a project Create a new project for this instanceParameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Create a custom stop words list Adds a list of custom stop words. Stop words are words that you want the service to ignore when they occur in a query because they're not useful in distinguishing the semantic meaning of the query. The stop words list cannot contain more than 1 million characters.A default stop words list is used by all collections. The default list is applied both at indexing time and at query time. A custom stop words list that you add is used at query time only. The custom stop words list augments the default stop words list; you cannot remove stop words. For information about the default stop words lists per language, see [the product documentation](/docs/discovery-data?topic=discovery-data-stopwords). Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Create training query Add a query to the training data for this project. The query can contain a filter and natural language query.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Create a document classifier model Create a document classifier model by training a model that uses the data and classifier settings defined in the specified document classifier.**Note:** This method is supported on installed intances (IBM Cloud Pak for Data) or IBM Cloud-managed Premium or Enterprise plan instances. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete a collection Deletes the specified collection from the project. All documents stored in the specified collection and not shared is also deleted.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete a document Deletes the document with the document ID that you specify from the collection. Removes uploaded documents from the collection permanently. If you delete a document that was added by crawling an external data source, the document will be added again with the next scheduled crawl of the data source. The delete function removes the document from the collection, not from the external data source.**Note:** Files such as CSV or JSON files generate subdocuments when they are added to a collection. If you delete a subdocument, and then repeat the action that created it, the deleted document is added back in to your collection. To remove subdocuments that are generated by an uploaded file, delete the original document instead. You can get the document ID of the original document from the `parent_document_id` of the subdocument result. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete a document classifier Deletes an existing document classifier from the specified project.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete an enrichment Deletes an existing enrichment from the specified project.**Note:** Only enrichments that have been manually created can be deleted. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete the expansion list Removes the expansion information for this collection. To disable query expansion for a collection, delete the expansion list.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete a project Deletes the specified project.**Important:** Deleting a project deletes everything that is part of the specified project, including all collections. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete a custom stop words list Deletes a custom stop words list to stop using it in queries against the collection. After a custom stop words list is deleted, the default stop words list is used.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete training queries Removes all training queries for the specified project.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete a training data query Removes details from a training data query, including the query string and all examples.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete labeled data Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID.You associate a customer ID with data by passing the **X-Watson-Metadata** header with a request that passes data. For more information about personal data and customer IDs, see [Information security](/docs/discovery-data?topic=discovery-data-information-security#inform ation-security). **Note:** This method is only supported on IBM Cloud instances of Discovery. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Delete a document classifier model Deletes an existing document classifier model from the specified project.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance | get_appname redefinition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get Autocomplete Suggestions Returns completion query suggestions for the specified prefix.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get collection Get details about the specified collection.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| List component settings Returns default configuration settings for components.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get document details Get details about a specific document, whether the document is added by uploading a file or by crawling an external data source.**Note**: This method is available only from Cloud Pak for Data version 4.0.9 and later installed instances and from Plus and Enterprise plan IBM Cloud-managed instances. It is not currently available from Premium plan instances. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get a document classifier Get details about a specific document classifier.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get a document classifier model Get details about a specific document classifier model.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get enrichment Get details about a specific enrichment.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get project Get details on the specified project.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance | get_request_prop redefinition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance | get_sdk_version_date redefinition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get a custom stop words list Returns the custom stop words list that is used by the collection. For information about the default stop words lists that are applied to queries, see [the product documentation](/docs/discovery-data?topic=discovery-data-stopwords).Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get a training data query Get details for a specific training data query, including the query string and all examplesParameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| List collections Lists existing collections for the specified project.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| List documents Lists the documents in the specified collection. The list includes only the document ID of each document and returns information for up to 10,000 documents.**Note**: This method is available only from Cloud Pak for Data version 4.0.9 and later installed instances and from Plus and Enterprise plan IBM Cloud-managed instances. It is not currently available from Premium plan instances. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| List document classifiers Get a list of the document classifiers in a project. Returns only the name and classifier ID of each document classifier.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| List enrichments Lists the enrichments available to this project. The *Part of Speech* and *Sentiment of Phrases* enrichments might be listed, but are reserved for internal use only.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Get the expansion list Returns the current expansion list for the specified collection. If an expansion list is not specified, an empty expansions array is returned.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| List fields Gets a list of the unique fields (and their types) stored in the specified collections.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| List projects Lists existing projects for this instance.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| List training queries List the training queries for the specified project.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| List document classifier models Get a list of the document classifier models in a project. Returns only the name and model ID of each document classifier model.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Query a project Search your data by submitting queries that are written in natural language or formatted in the Discovery Query Language. For more information, see the [Discovery documentation](/docs/discovery-data?topic=discovery-data-query-concepts). The default query parameters differ by project type. For more information about the project default settings, see the [Discovery documentation](/docs/discovery-data?topic=discovery-data-query-defaults). See [the Projects API documentation](#create-project) for details about how to set custom default query settings.The length of the UTF-8 encoding of the POST body cannot exceed 10,000 bytes, which is roughly equivalent to 10,000 characters in English. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Query collection notices Finds collection-level notices (errors and warnings) that are generated when documents are ingested.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Query project notices Finds project-level notices (errors and warnings). Currently, project-level notices are generated by relevancy training.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Update a collection Updates the specified collection's name, description, and enrichments.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Update a document Replace an existing document or add a document with a specified document ID. Starts ingesting a document with optional metadata.Use this method to upload a file to a collection. You cannot use this method to crawl an external data source. If the document is uploaded to a collection that shares its data with another collection, the **X-Watson-Discovery-Force** header must be set to `true`. **Notes:** * Uploading a new document with this method automatically replaces any existing document stored with the same document ID. * If an uploaded document is split into child documents during ingestion, all existing child documents are overwritten, even if the updated version of the document has fewer child documents. Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Update a document classifier Update the document classifier name or description, update the training data, or add or update the test data.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Update an enrichment Updates an existing enrichment's name and description.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Update a project Update the specified project's name.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Update a training query Updates an existing training query and it's examples.Parameters
Class-based Exceptions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
public instance |
| Update a document classifier model Update the document classifier model name or description.Parameters
Class-based Exceptions
|