Creates a custom analyzer.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request headers. For more information, see Common request parameters.

Request syntax

POST /v4/openapi/user-analyzers HTTP/1.1

Request parameters

Request body

Parameter

Type

Required

Example

Description

name

String

Yes

"test_1"

The name of the custom analyzer.

business

String

Yes

"chn_standard"

The basic analyzer.

Response parameters

Parameter Type Example Description
RequestId String ABCDEFGH

The ID of the request.

result Map {}

The custom analyzer.

Examples

Sample requests

POST /v4/openapi/user-analyzers

{
  "name": "lsh_test_user_analyzer",
  "business": "chn_standard"
}

Sample success responses

XML format

<requestId>1201EB10-FF51-01EF-068A-144393E618B5</requestId>
<result>
    <name>lsh_test_user_analyzer</name>
    <business>chn_standard</business>
    <available>true</available>
    <dicts>
        <id>2078</id>
        <type>segment</type>
        <entriesLimit>4</entriesLimit>
        <entriesCount>0</entriesCount>
        <available>true</available>
        <created>1597200767</created>
        <updated>1597200767</updated>
    </dicts>
    <created>1597200764</created>
    <updated>1597200764</updated>
</result>

JSON format

{
    "requestId": "1201EB10-FF51-01EF-068A-144393E618B5",
    "result": {
        "name": "lsh_test_user_analyzer",
        "business": "chn_standard",
        "available": true,
        "dicts": {
            "id": 2078,
            "type": "segment",
            "entriesLimit": 4,
            "entriesCount": 0,
            "available": true,
            "created": 1597200767,
            "updated": 1597200767
        },
        "created": 1597200764,
        "updated": 1597200764
    }
}

Error codes

For a list of error codes, visit the API Error Center.