Commit 3c157ecd by 张庆香

ComSearchbyTitle/filingno/pubno/inventor

parent 644bb87b
......@@ -7,11 +7,14 @@ class PatentQueryAPI extends WEBBase {
}
/**
* 接口跳转-POST请求
* action_type 执行的类型
* action_body 执行的参数
*/
* 接口跳转-POST请求
* action_type 执行的类型
* action_body 执行的参数
*/
async springBoard(pobj, qobj, req) {
console.log("==================================================");
console.log(pobj);
console.log("==================================================");
if (!pobj.actionProcess) {
return system.getResult(null, "actionProcess参数不能为空");
}
......@@ -25,20 +28,24 @@ class PatentQueryAPI extends WEBBase {
async opActionProcess(pobj, action_type, req) {
var opResult = null;
switch (action_type) {
case "test"://测试
case "test": //测试
opResult = system.getResultSuccess(null, "测试成功");
break;
case "CommomSearchbyApplicant"://根据申请人查询聚合
case "paCountByApplicantName"://根据申请人获取专利量
case "paShortListByApplicantName"://根据申请人获取专利详情列表
case "paDetailsBypubNo"://根据公开或授权号获取专利详情列表
case "paDetailsByfilingNo"://根据申请号获取专利详情列表
case "softwareCountByAuthor"://根据公司名称得到软著量
case "softwareListByAuthor"://根据公司名称得到软著详情
case "softwareDetailsByregNum"://根据登记号获取软著详情
case "worksCountByAuthor"://根据公司名称得到著作权量
case "worksListByAuthor"://根据公司名称得到著作权详情
case "worksDetailsByregNum"://根据登记号获取著作权详情
case "CommomSearchbyApplicant": //根据申请人查询聚合
case "paCountByApplicantName": //根据申请人获取专利量
case "paShortListByApplicantName": //根据申请人获取专利详情列表
case "paDetailsBypubNo": //根据公开或授权号获取专利详情列表
case "paDetailsByfilingNo": //根据申请号获取专利详情列表
case "softwareCountByAuthor": //根据公司名称得到软著量
case "softwareListByAuthor": //根据公司名称得到软著详情
case "softwareDetailsByregNum": //根据登记号获取软著详情
case "worksCountByAuthor": //根据公司名称得到著作权量
case "worksListByAuthor": //根据公司名称得到著作权详情
case "worksDetailsByregNum": //根据登记号获取著作权详情
case "CommomSearchbyTitle": //根据标题查询聚合
case "CommomSearchbyFilingno": //根据申请号查询聚合
case "CommomSearchbyPubno": //根据公开号查询聚合
case "CommomSearchbyInventor": //根据发明人查询聚合
opResult = await this.patentSve.opReqResult(pobj, req);
break;
default:
......
......@@ -10,6 +10,11 @@
1. [根据公司名称得到著作权量](#worksCountByAuthor)
1. [根据公司名称得到著作权详情接口](#worksListByAuthor)
1. [根据登记号获取著作权详情](#worksDetailsByregNum)
1. [根据标题查询聚合-------](#CommomSearchbyTitle)
1. [根据申请号查询聚合](#CommomSearchbyFilingno)
1. [根据公开号查询聚合](#CommomSearchbyPubno)
1. [根据发明人查询聚合](#CommomSearchbyInventor)
## **<a name="CommomSearchbyApplicant"> 根据申请人查询聚合接口</a>**
[返回到目录](#menu)
......@@ -548,3 +553,523 @@
```
## **<a name="CommomSearchbyTitle"> 根据标题查询聚合</a>**
[返回到目录](#menu)
##### URL
[/action/patentQuery/CommomSearchbyTitle]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:CommomSearchbyTitle
```javascript
{
"title": "一种基于有机物命名实体的机器翻译方法及翻译系统",//申请标题
"pubtype": "发明",//专利类型:发明、实用新型、外观设计
"pubstatus": "",//专利法律状态
"filingyear": "",//申请年份
"pubyear": "",//公开年份
"pagesize": 20,
"page": 1
}
```
#### 返回结果
```javascript
{ status: 0,
msg: '操作成功',
data:
{ total: 5,
max_score: 49.434937,
hits: [
{
"_index": "bigdata_patent_bib",
"_type": "_doc",
"_id": "201410451887",
"_score": 49.5767,
"_source": {
"pub_type": "发明",
"gr_no": "CN104298662B",
"filing_name": "一种基于有机物命名实体的机器翻译方法及翻译系统",
"pub_time": "2015-01-21",
"filing_time": "2014-09-05",
"gr_time": "2017-10-10",
"filing_no": "201410451887",
"inventor_name": [
"任智军",
"张威",
"李进",
"杨婧",
"张延花"
],
"pub_status": "有效",
"applicant_name": [
"中国专利信息中心"
],
"pub_no": "CN104298662A"
}
}
] },
buckets:
{ group_by_pub_status:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "有效",
"doc_count": 4
},
{
"key": "在审",
"doc_count": 1
}
]
},
group_by_filing_year:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "2017",
"doc_count": 1
},
{
"key": "2014",
"doc_count": 2
},
{
"key": "2013",
"doc_count": 1
},
{
"key": "2012",
"doc_count": 1
}
]
},
group_by_pub_year:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "2018",
"doc_count": 1
},
{
"key": "2015",
"doc_count": 1
},
{
"key": "2014",
"doc_count": 2
},
{
"key": "2012",
"doc_count": 1
}
]
},
group_by_pub_type:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "发明",
"doc_count": 5
}
]
}
}
}
```
## **<a name="CommomSearchbyFilingno"> 根据申请号查询聚合</a>**
[返回到目录](#menu)
##### URL
[/action/patentQuery/CommomSearchbyFilingno]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:CommomSearchbyFilingno
```javascript
{
"filingno": "201410451887",//申请号
"pubtype": "发明",//专利类型:发明、实用新型、外观设计
"pubstatus": "",//专利法律状态
"filingyear": "",//申请年份
"pubyear": "",//公开年份
"pagesize": 20,
"page": 1
}
```
#### 返回结果
```javascript
{ status: 0,
msg: '操作成功',
data:
{ total: 5,
max_score: 49.434937,
hits: [
{
"_index": "bigdata_patent_bib",
"_type": "_doc",
"_id": "201410451887",
"_score": 49.5767,
"_source": {
"pub_type": "发明",
"gr_no": "CN104298662B",
"filing_name": "一种基于有机物命名实体的机器翻译方法及翻译系统",
"pub_time": "2015-01-21",
"filing_time": "2014-09-05",
"gr_time": "2017-10-10",
"filing_no": "201410451887",
"inventor_name": [
"任智军",
"张威",
"李进",
"杨婧",
"张延花"
],
"pub_status": "有效",
"applicant_name": [
"中国专利信息中心"
],
"pub_no": "CN104298662A"
}
}
] },
buckets:
{ group_by_pub_status:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "有效",
"doc_count": 4
},
{
"key": "在审",
"doc_count": 1
}
]
},
group_by_filing_year:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "2017",
"doc_count": 1
},
{
"key": "2014",
"doc_count": 2
},
{
"key": "2013",
"doc_count": 1
},
{
"key": "2012",
"doc_count": 1
}
]
},
group_by_pub_year:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "2018",
"doc_count": 1
},
{
"key": "2015",
"doc_count": 1
},
{
"key": "2014",
"doc_count": 2
},
{
"key": "2012",
"doc_count": 1
}
]
},
group_by_pub_type:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "发明",
"doc_count": 5
}
]
}
}
}
```
## **<a name="CommomSearchbyPubno"> 根据公开号查询聚合</a>**
[返回到目录](#menu)
##### URL
[/action/patentQuery/CommomSearchbyPubno]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:CommomSearchbyPubno
```javascript
{
"pubno": "CN104298662A",//公开号
"pubtype": "发明",//专利类型:发明、实用新型、外观设计
"pubstatus": "",//专利法律状态
"filingyear": "",//申请年份
"pubyear": "",//公开年份
"pagesize": 20,
"page": 1
}
```
#### 返回结果
```javascript
{ status: 0,
msg: '操作成功',
data:
{ total: 5,
max_score: 49.434937,
hits: [
{
"_index": "bigdata_patent_bib",
"_type": "_doc",
"_id": "201410451887",
"_score": 49.5767,
"_source": {
"pub_type": "发明",
"gr_no": "CN104298662B",
"filing_name": "一种基于有机物命名实体的机器翻译方法及翻译系统",
"pub_time": "2015-01-21",
"filing_time": "2014-09-05",
"gr_time": "2017-10-10",
"filing_no": "201410451887",
"inventor_name": [
"任智军",
"张威",
"李进",
"杨婧",
"张延花"
],
"pub_status": "有效",
"applicant_name": [
"中国专利信息中心"
],
"pub_no": "CN104298662A"
}
}
] },
buckets:
{ group_by_pub_status:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "有效",
"doc_count": 4
},
{
"key": "在审",
"doc_count": 1
}
]
},
group_by_filing_year:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "2017",
"doc_count": 1
},
{
"key": "2014",
"doc_count": 2
},
{
"key": "2013",
"doc_count": 1
},
{
"key": "2012",
"doc_count": 1
}
]
},
group_by_pub_year:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "2018",
"doc_count": 1
},
{
"key": "2015",
"doc_count": 1
},
{
"key": "2014",
"doc_count": 2
},
{
"key": "2012",
"doc_count": 1
}
]
},
group_by_pub_type:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "发明",
"doc_count": 5
}
]
}
}
}
```
## **<a name="CommomSearchbyInventor"> 根据发明人查询聚合</a>**
[返回到目录](#menu)
##### URL
[/action/patentQuery/CommomSearchbyInventor]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:CommomSearchbyInventor
```javascript
{
"inventor": "任智军",//发明人
"pubtype": "发明",//专利类型:发明、实用新型、外观设计
"pubstatus": "",//专利法律状态
"filingyear": "",//申请年份
"pubyear": "",//公开年份
"pagesize": 20,
"page": 1
}
```
#### 返回结果
```javascript
{ status: 0,
msg: '操作成功',
data:
{ total: 5,
max_score: 49.434937,
hits: [
{
"_index": "bigdata_patent_bib",
"_type": "_doc",
"_id": "201410451887",
"_score": 49.5767,
"_source": {
"pub_type": "发明",
"gr_no": "CN104298662B",
"filing_name": "一种基于有机物命名实体的机器翻译方法及翻译系统",
"pub_time": "2015-01-21",
"filing_time": "2014-09-05",
"gr_time": "2017-10-10",
"filing_no": "201410451887",
"inventor_name": [
"任智军",
"张威",
"李进",
"杨婧",
"张延花"
],
"pub_status": "有效",
"applicant_name": [
"中国专利信息中心"
],
"pub_no": "CN104298662A"
}
}
] },
buckets:
{ group_by_pub_status:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "有效",
"doc_count": 4
},
{
"key": "在审",
"doc_count": 1
}
]
},
group_by_filing_year:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "2017",
"doc_count": 1
},
{
"key": "2014",
"doc_count": 2
},
{
"key": "2013",
"doc_count": 1
},
{
"key": "2012",
"doc_count": 1
}
]
},
group_by_pub_year:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "2018",
"doc_count": 1
},
{
"key": "2015",
"doc_count": 1
},
{
"key": "2014",
"doc_count": 2
},
{
"key": "2012",
"doc_count": 1
}
]
},
group_by_pub_type:
{ doc_count_error_upper_bound: 0,
sum_other_doc_count: 0,
buckets: [
{
"key": "发明",
"doc_count": 5
}
]
}
}
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment