MENU
      Set stop word policy

        Set stop word policy


        Article summary

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

        Sets stop words to exclude them from input search terms.

        • This operation is useful to remove unnecessary words such as postpositions and conjunctions from search terms.
        • You can create multiple stop word policies, but can set only one policy for each search request.
        POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/{name}/stopword/{rule_name}
        HTTP

        Request

        Request parameters

        ParameterRequiredTypeLimitationsDescription
        nameYstringDomain name
        rule_nameYstringOnly English alphabet, numbers, "_" and "-" are allowed. The name must start with an alphabetical character or "_", and must be between 3 and 20 characters in length.Name of a stop word policy to create

        Request body

        ParameterRequiredTypeLimitationsDescription
        typeYstringfilter, exactStop 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.
      • word_listYListList of stop words
        case_sensitiveYbooleantrue, false
        Whether words set with Stopword are case sensitive

        Response status

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

        Examples

        Example request

        POST /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: 1551462015873
        
        {
          "type": "filter",
          "word_list": [
            "is", "are"
          ],
          "case_sensitive": false
        }
        HTTP

        Example Response

        {"result":"ok"}
        JSON

        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.