POST api/Search/VipSearchByObject
检索
Request Information
URI Parameters
None.
Body Parameters
QueryModel| Name | Description | Type | Additional information |
|---|---|---|---|
| searchType |
检索类型 |
QueryType |
None. |
| language |
语言 |
Collection of string |
None. |
| searchRules |
表达式检索内容 |
string |
None. |
| IsHighlight |
是否高亮 |
boolean |
None. |
| item |
检索规则 |
Collection of QueryItem |
None. |
| beginyear |
开始年 |
integer |
None. |
| endyear |
结束年 |
integer |
None. |
| sourcetype |
文献类型 |
Collection of ArticlesTypeEnum |
None. |
| page | integer |
None. |
|
| pagesize | integer |
None. |
|
| Sort | SearchSortType |
None. |
|
| cluster | Collection of QueryCluster |
None. |
|
| clusterfields | integer |
None. |
|
| searchObjectType | SearchObjectType |
None. |
Request Formats
application/json, text/json
Sample:
{
"searchType": 0,
"language": [
"sample string 1",
"sample string 2"
],
"searchRules": "sample string 1",
"IsHighlight": true,
"item": [
{
"title": "sample string 1",
"logic": 0,
"field": 0,
"exact": 0
},
{
"title": "sample string 1",
"logic": 0,
"field": 0,
"exact": 0
}
],
"beginyear": 3,
"endyear": 4,
"sourcetype": [
0,
0
],
"page": 5,
"pagesize": 6,
"Sort": 0,
"cluster": [
{
"name": "sample string 1",
"value": "sample string 2"
},
{
"name": "sample string 1",
"value": "sample string 2"
}
],
"clusterfields": 7,
"searchObjectType": 0
}
application/xml, text/xml
Sample:
<QueryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Search.Model">
<IsHighlight>true</IsHighlight>
<Sort>Score</Sort>
<beginyear>3</beginyear>
<cluster>
<QueryCluster>
<name>sample string 1</name>
<value>sample string 2</value>
</QueryCluster>
<QueryCluster>
<name>sample string 1</name>
<value>sample string 2</value>
</QueryCluster>
</cluster>
<clusterfields>7</clusterfields>
<endyear>4</endyear>
<item>
<QueryItem>
<exact>模糊</exact>
<field>M</field>
<logic>AND</logic>
<title>sample string 1</title>
</QueryItem>
<QueryItem>
<exact>模糊</exact>
<field>M</field>
<logic>AND</logic>
<title>sample string 1</title>
</QueryItem>
</item>
<language xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</language>
<page>5</page>
<pagesize>6</pagesize>
<searchObjectType>Writer</searchObjectType>
<searchRules>sample string 1</searchRules>
<searchType>条件检索</searchType>
<sourcetype xmlns:d2p1="http://schemas.datacontract.org/2004/07/Common">
<d2p1:VipEnums.ArticlesTypeEnum>All</d2p1:VipEnums.ArticlesTypeEnum>
<d2p1:VipEnums.ArticlesTypeEnum>All</d2p1:VipEnums.ArticlesTypeEnum>
</sourcetype>
</QueryModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
检索
ResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
返回码 |
ResultCode |
None. |
| Message |
返回信息 |
string |
None. |
| Data |
返回的数据 |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 10000,
"Message": "sample string 1",
"Data": {}
}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EKP.WeChatAppApi.Models"> <Code>Success</Code> <Data /> <Message>sample string 1</Message> </ResultModel>