MENU
      Query Analysis Count

        Query Analysis Count


        기사 요약

        사용된 검색 Query들을 분석하여 field별 Count 집계를 합니다.

        • city1: 도시 구분필드1 ex) 서울특별시, 경기도, 충청북도
        • city2: 도시 구분필드2 ex) 강남구, 서초, 구로구
        • city3: 도시 구분필드2 ex) 역삼동, 정자동, 서초동
        • country: 국가
        • word: 검색 Query를 형태소분석한 word
        POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/{name}/analysis/count
        HTTP

        요청

        요청 파라미터

        파라미터명필수 여부타입제약 사항설명
        nameYesstring생성되어져 있는 Domain 이름

        요청 바디

        파라미터명필수 여부타입제약 사항설명
        fromYesstring시작 시간(UTC, ex: 20161027T171340Z )
        toYesstring종료 시간(UTC, ex: 20161027T171340Z )
        fieldYesQueryAnalysisField집계 field 설정
        max_sizeYesstring최소 1 / 최대 20가져올 최대 Size

        응답

        필드명타입설명비고
        keystring선택한 field에 해당하는 값
        doc_countnumber선택한 field의 count

        응답 Status

        Http StatusDesc
        200OK(요청 완료)
        200status.code : -1(요청 실패)
        400Bad Request
        401Unauthorized
        403Forbidden
        404Not Found
        500Internal Server Error

        예시

        요청 예시 - 'word' Field Count

        POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/car_dev/document/search
        
        POST /CloudSearch/real/v1/domain/car_dev/document/manage HTTP/1.1
        Host:cloudsearch.apigw.ntruss.com
        Content-Type: application/json
        x-ncp-apigw-signature-v2: cDwtHuQeGmwWyNmwlN6XIGA66zge4iMXvfoDQNna05g=
        x-ncp-apigw-timestamp: 1545817618751
        x-ncp-iam-access-key: teGTwtcSEGA7fu28BGGi
        
        {
          "from": "2019-09-25T05:00:00Z",
          "to": "2019-09-25T15:00:00Z",
          "field": "word",
          "max_size": 10
        }
        HTTP

        응답 예시

        [
          {
            "key": "class",
            "doc_count": 3117
          },
          {
            "key": "bmw",
            "doc_count": 3027
          },
          {
            "key": "model",
            "doc_count": 2968
          },
          {
            "key": "2019",
            "doc_count": 1585
          },
          {
            "key": "e",
            "doc_count": 1570
          },
          {
            "key": "소나타",
            "doc_count": 1560
          },
          {
            "key": "c",
            "doc_count": 1547
          },
          {
            "key": "2018",
            "doc_count": 1539
          },
          {
            "key": "현대",
            "doc_count": 1534
          },
          {
            "key": "520",
            "doc_count": 1517
          }
        ]
        JSON

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

        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.