- 1、服务总线-字典接口组
- 1、国家英文码值对照相关接口
- 2、ISO 639语言编码相关接口
- 3、媒体类型相关接口
- 4、地域相关接口
- 5、媒体信源标签相关接口
- 6、标签相关接口
- 7、分类相关接口
- 2、消息服务-业务接口组
- 1、发文检索相关接口
- 2、媒体账号检索相关接口
- 3、发文分析相关接口
- 4、媒体账号分析相关接口
- 5、热榜相关接口
- 7、数据推送相关接口
- 服务总线-附件
- 产品API
2)检索发文详情信息
POST
/v1/search/getSearchDetail
1、发文检索相关接口
请求参数
Header 参数
appKey
string
AppKey
nonce
string
随机数
timestamp
string
时间戳
signature
string
必需
Body 参数application/json
搜索详情入参
searchMode
object (SearchModeDetail)
详情标红检索模式
searchType
integer <int32>
可选
>= 0<= 1
keywordExps
array[string]
高级模式-表达式
simpleKeyword
object (SimpleKeyword)
可选
简易模式【searchType=1,此字段必填】
注意:1. [ !#^&+|(){}[]<>~!#&()——+|{}【】]-等特殊符号不支持;
2.不支持如!&,!|,!! 连着写法;
3.三组关键词累加输入长度限制不超过200(包含200)。
matchMethods
array[integer <int32>]
可选
uuid
string
文章唯一值
index
string
文章对应的索引
isHighLight
boolean
可选
示例值:
false
示例
{
"searchMode": {
"searchType": 0,
"keywordExps": [
"string"
],
"simpleKeyword": {
"mustKeyWord": [
"string"
],
"mustKeyWordComplex": [
"string"
],
"anyKeyWord": [
"string"
],
"needExclude": [
"string"
]
}
},
"matchMethods": [
0
],
"uuid": "string",
"index": "string",
"isHighLight": false
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/search/getSearchDetail' \
--header 'appKey;' \
--header 'nonce;' \
--header 'timestamp;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"searchMode": {
"searchType": 0,
"keywordExps": [
"string"
],
"simpleKeyword": {
"mustKeyWord": [
"string"
],
"mustKeyWordComplex": [
"string"
],
"anyKeyWord": [
"string"
],
"needExclude": [
"string"
]
}
},
"matchMethods": [
0
],
"uuid": "string",
"index": "string",
"isHighLight": false
}'
返回响应
🟢200OK
application/json
Body
返回数据格式
code
integer <int32>
可选
success
boolean
可选
message
string
响应消息
data
object (SearchResultVO)
发文检索响应结果集
gid
integer <int64>
全局有序ID
uuid
string
文档唯一ID
title
string
可选
layoutName
string
电子报纸版面名称
layoutCode
string
电子报纸版号
paperPicture
array[string]
电子报纸版面图
author
string
作者
source
string
可选
abstract1
string
摘要
content
string
内容
imageOcrContent
string
可选
imageOcrVo
string
可选
audioContent
string
可选
publishTime
string
文章发布时间
crawlerTime
string