获取与干预词典关联的资源清单。如果某个干预词典被qp引用,则列出来所有的应用及QP信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
GET /v4/openapi/intervention-dictionaries/[name]/related HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
name | String | Path | 是 | my_dict |
干预词典名称 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
requestId | String | D77D0DAF-790D-F5F5-A9C0-133738165014 |
请求ID |
result | List | [] |
应用及QP信息,无结果时为空 |
字段 |
类型 |
描述 |
---|---|---|
result[].appGroup |
String |
应用名 |
result[].queryProcessor |
Object |
QP信息 |
示例
请求示例
GET /v4/openapi/intervention-dictionaries/my_test/related
正常返回示例
XML
格式
<requestId>65956EC5-71B8-8A21-2F2E-FBE7E7292AD6</requestId>
<result>
<appGroup>test_srn_mysql</appGroup>
<queryProcessor>
<name>it_content</name>
<active>true</active>
<indexes>short_text</indexes>
<indexes>text_pack</indexes>
<indexes>short_text_pack</indexes>
<processors>
<useSystemDictionary>true</useSystemDictionary>
<interventionDictionary>tst</interventionDictionary>
<name>stop_word</name>
</processors>
<processors>
<useSystemDictionary>true</useSystemDictionary>
<interventionDictionary>test_han_jiuduo_2</interventionDictionary>
<name>spell_check</name>
</processors>
<processors>
<useSystemDictionary>true</useSystemDictionary>
<interventionDictionary>test_han_tongyici</interventionDictionary>
<name>synonym</name>
</processors>
<processors>
<useSystemDictionary>true</useSystemDictionary>
<interventionDictionary/>
<name>term_weighting</name>
</processors>
<domain>IT_CONTENT</domain>
<created>1585714793</created>
<updated>1591163738</updated>
</queryProcessor>
</result>
JSON
格式
{
"requestId": "65956EC5-71B8-8A21-2F2E-FBE7E7292AD6",
"result": {
"appGroup": "test_srn_mysql",
"queryProcessor": {
"name": "it_content",
"active": true,
"indexes": [
"short_text",
"text_pack",
"short_text_pack"
],
"processors": [
{
"useSystemDictionary": true,
"interventionDictionary": "tst",
"name": "stop_word"
},
{
"useSystemDictionary": true,
"interventionDictionary": "test_han_jiuduo_2",
"name": "spell_check"
},
{
"useSystemDictionary": true,
"interventionDictionary": "test_han_tongyici",
"name": "synonym"
},
{
"useSystemDictionary": true,
"interventionDictionary": "",
"name": "term_weighting"
}
],
"domain": "IT_CONTENT",
"created": 1585714793,
"updated": 1591163738
}
}
}
返回示例补充说明
**无结果**
`{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": []
}`
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交