SearchAggregate
    • PDF

    SearchAggregate

    • PDF

    Article summary

    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.

    FieldTypeRequiredDescription
    docprop_nameStringRequiredSpecify document attributes to base the summary search on
    maxListOptionalSpecify the target of max operation in summary search
    minListOptionalSpecify the target of min operation in summary search
    oneStringOptionalSpecify the target of one operation in summary search
    sumStringOptionalSpecify the target of sum operation in summary search
    • Use "_1" keyword to get the number of summarized results

    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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.