SearchAggregate
- Print
- PDF
SearchAggregate
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic
These are search result summary settings.
Syntax
The syntax is as follows.
private String docprop_name;
private List<String> max = new ArrayList<String>();
private List<String> min = new ArrayList<String>();
private String one;
private String sum;
Field
The following describes the fields.
Field | Type | Required | Description |
---|---|---|---|
docprop_name | String | Required | Specify document attributes to base the summary search on
|
max | List | Optional | Specify the target of max operation in summary search |
min | List | Optional | Specify the target of min operation in summary search |
one | String | Optional | Specify the target of one operation in summary search |
sum | String | Optional | Specify the target of sum operation in summary search
|
Examples
The following is a sample search request.
{
"search": {
"content": {
"main": {
"type": "null",
}
}
},
"aggregate": {
"dp_like_cnt": {
"max": ["dp_like_cnt", "dp_dislike_cnt"],
"min": ["dp_like_cnt", "dp_disklike_cnt"],
"one": "dp_like_cnt",
"sum": "_1"
}
}
}
Was this article helpful?