SearchAggregate
    • PDF

    SearchAggregate

    • PDF

    Article Summary

    Classic 환경에서 이용 가능합니다.

    검색 결과 요약 설정입니다.

    구문

    구문은 다음과 같습니다.

    private String docprop_name;
    private List<String> max = new ArrayList<String>();
    private List<String> min = new ArrayList<String>();
    private String one;
    private String sum;
    

    필드

    필드에 대한 설명은 다음과 같습니다.

    필드타입필수 여부설명
    docprop_nameStringRequired요약 검색 기준이 되는 문서 속성 지정
    • 기존에 DocProperty가 설정되어 있는 섹션 중에서 선택
    maxListOptional요약 검색의 max 연산 대상 지정
    minListOptional요약 검색의 min 연산 대상 지정
    oneStringOptional요약 검색의 one 연산 대상 지정
    sumStringOptional요약 검색의 sum 연산 대상 지정
    • '_1' 키워드 사용 시에는 요약된 결과의 수를 구함

    예시

    검색 요청 시 예시는 다음과 같습니다.

    {
      "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"
        }
      }
    }
    

    이 문서가 도움이 되었습니까?

    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.