Get stop word policy

Prev Next

We are preparing a localization service for the content. We will do our best to provide the localization service as soon as possible.

Gets stop word policies.

GET https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/{name}/stopword/{rule_name}

Path variables

Parameter Required Type Limitations Description
name Y string Domain name
rule_name Y string Stop word policy name

Request

Request Header

Parameter Required Type Limitations Description
hasWordList Y boolean Default: true Indicates whether to include stop words in the result.

Response

Field Required Type Description Note
type Y string filter, exact Stop word rule type
  • filter: Partial matching, which removes a search term if part of it matches the registered stop word.
  • exact: Exact matching, which removes a search term if it exactly match the registered stop word.
  • case_sensitive Y boolean true, false
    Whether words set with Stopword are case sensitive
    word_list N List List of words registered in the policy
    word_list_length Y number Number of words registered in the policy
    rule_name Y string Stop word policy name

    Response status

    HTTP status Description
    200 OK (Successfully completed)
    400 Bad Request
    401 Unauthorized
    403 Forbidden
    404 Not Found
    500 Internal Server Error

    Examples

    Request Example

    GET /CloudSearch/real/v1/domain/car_beta/stopword/josa HTTP/1.1
    Host: cloudsearch.apigw.ntruss.com
    accept:application/json
    x-ncp-iam-access-key: cPMl0CYGgRYvEa8sylCj
    x-ncp-apigw-signature-v2: +Ln++MqcKHckKli2y/bB76xLUu8qR9rLvo6j2yIYuYg=
    x-ncp-apigw-timestamp: 1551453306138
    hasWordList: true
    

    Request Example

    {
      "type": "filter",
      "word_list": [
        "은",
        "는",
        "이",
        "가",
        "을",
        "를",
        "의"
      ],
      "word_list_length": 7,
      "rule_name": "josa"
    }