CubeOpenSearchRequest request = new CubeOpenSearchRequest();
request.setQueryString("ti:汽车");
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":"CN88210864",
"ad":"19880307",
"pn":"CN88210864",
"pd":"19881207",
"ti":"汽车售票员专用包",
"pa":[
"杨开山"
],
"id":"CN88210864"
},
"hlFieldValues":{
"pa":[
"杨开山"
],
"ad":[
"19880307"
],
"pd":[
"19881207"
],
"ti":[
"<span class=\"c-highligth-default\">汽</span><span class=\"c-highligth-default\">车</span>售票员专用包"
],
"id":[
"CN88210864"
],
"an":[
"CN88210864"
],
"pn":[
"CN88210864"
]
}
}
],
"groupedHits":0,
"qTime":197,
"success":true,
"totalHits":277915
}
{
"errorCode":"500",
"groupedHits":0,
"msg":"patFields cannot be empty or null!",
"qTime":0,
"success":false,
"totalHits":0
}