CubeOpenSearchRequest request = new CubeOpenSearchRequest();
request.setQueryString("ti:汽车 AND ls='ls2af:(江苏)'");
request.setSource(15);
request.setLevel(ApiLevel.ONE);
request.setPageIndex(1);
request.setPageSize(1);
request.setSortField(PatField.ApplicationNumber);
request.setFieldOrder(FieldOrder.DESC);
CubePatentSearchResponse response = CLIENT.execute(request);
List<Document<PatField>> documents = response.getDocuments();
long totalHits = response.getTotalHits();
"documents":[
{
"fieldValues":{
"an":"CN200730035701.X",
"ad":"20070531",
"pn":"CN300772437",
"pd":"20080430",
"ti":"汽车倒车雷达显示器",
"pa":[
"徐福芳"
],
"id":"CN200730035701.X"
},
"hlFieldValues":{
"pa":[
"徐福芳"
],
"ad":[
"20070531"
],
"pd":[
"20080430"
],
"ti":[
"<span class=\"c-highligth-default\">汽</span><span class=\"c-highligth-default\">车</span>倒车雷达显示器"
],
"id":[
"CN200730035701.X"
],
"an":[
"CN200730035701.X"
],
"pn":[
"CN300772437"
]
}
}
],
"groupedHits":0,
"qTime":26360,
"success":true,
"totalHits":162
{
"errorCode":"500",
"groupedHits":0,
"msg":"patFields cannot be empty or null!",
"qTime":0,
"success":false,
"totalHits":0
}