Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ibm cloud 通过发现GUI工具查找DocumentId_Ibm Cloud_Ibm Watson_Watson_Watson Discovery - Fatal编程技术网

Ibm cloud 通过发现GUI工具查找DocumentId

Ibm cloud 通过发现GUI工具查找DocumentId,ibm-cloud,ibm-watson,watson,watson-discovery,Ibm Cloud,Ibm Watson,Watson,Watson Discovery,我想训练我的发现收藏,我已经上传了200多个文档。我通过GUI上传了这些文档。通过查看发现文档,我知道我必须进行API调用来训练我的集合,因为训练API尚未通过GUI公开。作为培训API调用的一部分,我需要包含如下文档: { "natural_language_query": "{natural_language_query}", "filter": "{filter_definition}" "examples": [ { "document_id": "{do

我想训练我的发现收藏,我已经上传了200多个文档。我通过GUI上传了这些文档。通过查看发现文档,我知道我必须进行API调用来训练我的集合,因为训练API尚未通过GUI公开。作为培训API调用的一部分,我需要包含如下文档:

{
  "natural_language_query": "{natural_language_query}",
  "filter": "{filter_definition}"
  "examples": [
    {
      "document_id": "{document_id_1}",
      "cross_reference": "{cross_reference_1}",
      "relevance": 0
    },
    {
      "document_id": "{document_id_2}",
      "cross_reference": "{cross_reference_2}",
      "relevance": 0
    }
  ]
}
我的问题是,我应该如何获取已上载文档的DocumentID?有没有办法通过GUI找到这一点?或者可能是一个API调用,它将返回如下内容:

{
  "document_name" = "MyDocument1",
  "documentId" = "the_document_id_for_MyDocument1"
},

...

{
  "document_name" = "MyDocumentN",
  "documentId" = "the_document_id_for_MyDocumentN"
}

或者获取DocumentID的唯一方法是创建一个新集合,并通过API调用直接上载所有文档,并在获取文档ID时跟踪它们?

使用GUI,执行以下步骤:

  • 在“组查询结果(聚合)”中输入
    术语(\u id)
    文本框
  • 在“要返回的字段”下,选择“指定”进行输入
    提取的\u元数据

  • 请注意,查询和筛选输入应保持为空

    此解决方案不适用于我。我尝试了
    term(_id)
    term(id)
    ,两个聚合都没有返回结果。你能举一些例子吗?