Deletes a rough sort expression for a version of an OpenSearch application.

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 common request headers. For more information, see Common request parameters.

Request syntax

DELETE /v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks/[name] HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes "my_app_group_name"

The name of the application.

appId Integer Path Yes 110157886

The ID of the version.

name String Path Yes "test"

The name of the rough sort expression.

Response parameters

Parameter Type Example Description
requestId String E676FAB6-A0AC-64D9-F9D7-D0D33C930CFF

The ID of the request.

result Struct

The information about the rough sort expression.

active Boolean true

Indicates whether the expression is the default one.

description String ""

The description of the expression.

meta Array of metaItem

The content of the expression.

arg String ""

The parameters that are used by a function in the expression.

For more information, see Rough sort functions.

attribute String static_bm25()

The attribute, feature function, or field to be searched for.

For more information about supported feature functions, see Rough sort functions.

weight Float 10

The weight.

Valid values: [-100000,100000] (excluding 0).

name String default

The name of the expression.

Examples

Sample requests

DELETE /v4/openapi/app-groups/os_function_test_v1/apps/110157886/first-ranks/test_gmt

Sample success responses

XML format

<requestId>E676FAB6-A0AC-64D9-F9D7-D0D33C930CFF</requestId>
<result>
    <name>test2</name>
    <description/>
    <active>false</active>
    <type>STRUCT</type>
    <meta>
        <attribute>timeliness()</attribute>
        <arg>hid</arg>
        <weight>1</weight>
    </meta>
    <created>1587708467</created>
    <updated>1587708467</updated>
</result>

JSON format

{
    "requestId": "E676FAB6-A0AC-64D9-F9D7-D0D33C930CFF",
    "result": {
        "name": "test2",
        "description": "",
        "active": false,
        "type": "STRUCT",
        "meta": {
            "attribute": "timeliness()",
            "arg": "hid",
            "weight": 1
        },
        "created": 1587708467,
        "updated": 1587708467
    }
}

Error codes

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