All Products
Search
Document Center

:ListSecondRanks - Queries the fine sort expressions for a version.

Last Updated:Oct 25, 2022

Queries the fine sort expressions 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.

Debugging

Authorization information

No authorization information is revealed for the operation.

Request parameters

ParameterTypeRequiredDescriptionExample
appGroupIdentitystringYes

The name of the application.

my_app_group_name
appIdintegerYes

The version number.

110157886

Response parameters

ParameterTypeDescriptionExample
object
totalCountinteger

The total number of results returned.

1
requestIdstring

The ID of the request.

0A6EB64B-B4C8-CF02-810F-E660812972FF
resultarray

The information about each fine sort expression.

For more information, see SecondRank.

object
createdinteger

The time when the expression was created.

0
activeboolean

Indicates whether the expression is the default one.

false
isDefaultstring

Indicates whether the expression is the default one. This parameter appears only in the response. Valid values:

  • true
  • false
false
isSysstring

Indicates whether the expression is a system expression. This parameter appears only in the response. Valid values:

  • true
  • false
true
descriptionstring

Description

""
updatedinteger

The most recent update time.

1587052801
namestring

Parameter

tests
metastring

The content of the fine sort expression. You can define an expression that consists of fields, feature functions, and mathematical functions to implement complex sort logic.

random()+now()
idstring

The ID of the expression. This parameter appears only in the response.

890473

Examples

Sample requests

GET /v4/openapi/app-groups/os_function_test_v1/apps/110157886/second-ranks

Sample success responses

JSON format

{
    "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
    "result": [
        {
            "name": "default",
            "meta": "",
            "active": false,
            "description": "",
            "id":"890473",
            "created": 0,
            "updated": 0,
            "isDefault": false,
            "isSys": true
        },
        {
            "name": "tests",
            "meta": "random()+now()",
            "active": true,
            "description": "",
            "id": "890474",
            "created": 1587052801,
            "updated": 1587052801,
            "isDefault": true,
            "isSys": false
        },
        {
            "name": "test",
            "meta": "query_term_count()",
            "active": false,
            "description": "",
            "id": "890475",
            "created": 1587052801,
            "updated": 1587052801,
            "isDefault": false,
            "isSys": false
        }
    ],
    "totalCount":3
}

XML format

<requestId>0A6EB64B-B4C8-CF02-810F-E660812972FF</requestId>
<result>
    <name>default</name>
    <meta/>
    <active>false</active>
    <description/>
    <id>890473</id>
    <created>0</created>
    <updated>0</updated>
    <isDefault>false</isDefault>
    <isSys>true</isSys>
</result>
<result>
    <name>tests</name>
    <meta>random()+now()</meta>
    <active>true</active>
    <description/>
    <id>890474</id>
    <created>1587052801</created>
    <updated>1587052801</updated>
    <isDefault>true</isDefault>
    <isSys>false</isSys>
</result>
<result>
    <name>test</name>
    <meta>query_term_count()</meta>
    <active>false</active>
    <description/>
    <id>890475</id>
    <created>1587052801</created>
    <updated>1587052801</updated>
    <isDefault>false</isDefault>
    <isSys>false</isSys>
</result>
<totalCount>3</totalCount>

Error codes

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