获取指定 OpenSearch 应用版本的查询分析规则列表

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

GET /v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors/[name] HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
appGroupIdentity String Path my_app_group_name

应用名称

appId Integer Path 110157886

版本号

name String Path test

规则名称

返回数据

名称 类型 示例值 描述
requestId String 0A6EB64B-B4C8-CF02-810F-E660812972FF

请求ID

result Struct

规则信息

active Boolean true

是否默认规则

created Integer 1587398402

创建时间

domain String GENERAL

行业类型

  • GENERAL 通用
  • ECOMMERCE 电商
  • IT_CONTENT IT内容
indexes List default

应用的索引范围

name String test

规则名称

processors List {}

包含功能

updated Integer 1587398402

更新时间

示例

请求示例

GET /v4/openapi/app-groups/os_function_test_v1/apps/110157886/query-processors/test

正常返回示例

XML格式

<requestId>0A6EB64B-B4C8-CF02-810F-E660812972FF</requestId>
<result>
    <name>test</name>
    <active>true</active>
    <indexes>default</indexes>
    <processors>
        <useSystemDictionary>true</useSystemDictionary>
        <name>ner</name>
        <interventionDictionary/>
        <priorities>
            <tag>brand</tag>
            <priority>HIGH</priority>
        </priorities>
        <priorities>
            <tag>category</tag>
            <priority>HIGH</priority>
        </priorities>
        <priorities>
            <tag>material</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>element</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>style</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>color</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>function</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>scenario</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>people</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>season</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>model</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>region</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>name</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>adjective</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>category-modifier</tag>
            <priority>MIDDLE</priority>
        </priorities>
        <priorities>
            <tag>size</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>quality</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>suit</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>new-release</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>series</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>marketing</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>entertainment</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>organization</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>movie</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>game</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>number</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>unit</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>common</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>new-word</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>proper-noun</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>symbol</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>prefix</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>suffix</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>gift</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>negative</tag>
            <priority>LOW</priority>
        </priorities>
        <priorities>
            <tag>agent</tag>
            <priority>LOW</priority>
        </priorities>
    </processors>
    <processors>
        <useSystemDictionary>true</useSystemDictionary>
        <name>synonym</name>
        <interventionDictionary/>
    </processors>
    <processors>
        <use_system_dictionary>true</use_system_dictionary>
        <name>term_weighting</name>
        <interventionDictionary/>
    </processors>
    <processors>
        <use_system_dictionary>true</use_system_dictionary>
        <name>spell_check</name>
        <interventionDictionary/>
    </processors>
    <processors>
        <name>category_prediction</name>
        <categoryPrediction>60</categoryPrediction>
        <projectId>848</projectId>
    </processors>
    <domain>GENERAL</domain>
    <created>1587398402</created>
    <updated>1587398402</updated>
</result>

JSON格式

{
    "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
    "result": {
        "name": "test",
        "active": true,
        "indexes": "default",
        "processors": [
            {
                "useSystemDictionary": true,
                "name": "ner",
                "interventionDictionary": "",
                "priorities": [
                    {
                        "tag": "brand",
                        "priority": "HIGH"
                    },
                    {
                        "tag": "category",
                        "priority": "HIGH"
                    },
                    {
                        "tag": "material",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "element",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "style",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "color",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "function",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "scenario",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "people",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "season",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "model",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "region",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "name",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "adjective",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "category-modifier",
                        "priority": "MIDDLE"
                    },
                    {
                        "tag": "size",
                        "priority": "LOW"
                    },
                    {
                        "tag": "quality",
                        "priority": "LOW"
                    },
                    {
                        "tag": "suit",
                        "priority": "LOW"
                    },
                    {
                        "tag": "new-release",
                        "priority": "LOW"
                    },
                    {
                        "tag": "series",
                        "priority": "LOW"
                    },
                    {
                        "tag": "marketing",
                        "priority": "LOW"
                    },
                    {
                        "tag": "entertainment",
                        "priority": "LOW"
                    },
                    {
                        "tag": "organization",
                        "priority": "LOW"
                    },
                    {
                        "tag": "movie",
                        "priority": "LOW"
                    },
                    {
                        "tag": "game",
                        "priority": "LOW"
                    },
                    {
                        "tag": "number",
                        "priority": "LOW"
                    },
                    {
                        "tag": "unit",
                        "priority": "LOW"
                    },
                    {
                        "tag": "common",
                        "priority": "LOW"
                    },
                    {
                        "tag": "new-word",
                        "priority": "LOW"
                    },
                    {
                        "tag": "proper-noun",
                        "priority": "LOW"
                    },
                    {
                        "tag": "symbol",
                        "priority": "LOW"
                    },
                    {
                        "tag": "prefix",
                        "priority": "LOW"
                    },
                    {
                        "tag": "suffix",
                        "priority": "LOW"
                    },
                    {
                        "tag": "gift",
                        "priority": "LOW"
                    },
                    {
                        "tag": "negative",
                        "priority": "LOW"
                    },
                    {
                        "tag": "agent",
                        "priority": "LOW"
                    }
                ]
            },
            {
                "useSystemDictionary": true,
                "name": "synonym",
                "interventionDictionary": ""
            },
            {
                "use_system_dictionary": true,
                "name": "term_weighting",
                "interventionDictionary": ""
            },
            {
                "use_system_dictionary": true,
                "name": "spell_check",
                "interventionDictionary": ""
            },
            {
                "name": "category_prediction",
                "categoryPrediction": 60,
                "projectId": 848
            }
        ],
        "domain": "GENERAL",
        "created": 1587398402,
        "updated": 1587398402
    }
}

错误码

访问错误中心查看更多错误码。