描述

应用版本的数据结构

示例

{
    "id": "100303063",
    "description": "",
    "status": "ok",
    "fetchFields": [
        "id",
        "title",
        "buy",
        "cate_id",
        "cate_name"
    ],
    "type": "enhanced",
    "schema": {
        "tables": {
            "main": {
                "primaryTable": true,
                "name": "main",
                "fields": {
                    "id": {
                        "name": "id",
                        "type": "LITERAL",
                        "primaryKey": true
                    },
                    "title": {
                        "name": "title",
                        "type": "TEXT",
                        "primaryKey": false
                    },
                    "buy": {
                        "name": "buy",
                        "type": "INT",
                        "primaryKey": false
                    },
                    "cate_id": {
                        "name": "cate_id",
                        "type": "INT",
                        "primaryKey": false
                    },
                    "cate_name": {
                        "name": "cate_name",
                        "type": "LITERAL",
                        "primaryKey": false
                    }
                }
            }
        },
        "indexes": {
            "searchFields": {
                "id": {
                    "fields": [
                        "id"
                    ]
                },
                "default": {
                    "fields": [
                        "title"
                    ],
                    "analyzer": "chn_standard"
                },
                "buy": {
                    "fields": [
                        "buy"
                    ]
                }
            },
            "filterFields": [
                "id",
                "buy",
                "cate_id",
                "cate_name"
            ]
        }
    },
    "algoDeploymentId": 0,
    "firstRanks": [{
            "id": "",
            "name": "default",
            "description": "",
            "active": false,
            "meta": [{
                "attribute": "static_bm25()",
                "arg": "",
                "weight": 1
            }],
            "created": 0,
            "updated": 0
        },
        {
            "id": "887857",
            "name": "first_rank_lsh_1",
            "description": "",
            "active": true,
            "meta": [{
                    "attribute": "static_bm25()",
                    "arg": "",
                    "weight": 10
                },
                {
                    "attribute": "exact_match_boost()",
                    "arg": "",
                    "weight": 20
                },
                {
                    "attribute": "buy",
                    "arg": "",
                    "weight": 30
                }
            ],
            "created": 1590977140,
            "updated": 1590977140
        }
    ],
    "secondRanks": [{
        "id": "-1",
        "name": "default",
        "meta": "",
        "active": true,
        "description": "",
        "created": 0,
        "updated": 0
    }],
    "dataSources": [],
    "summaries": [{
        "name": "default",
        "meta": [{
            "field": "title",
            "len": 50,
            "element": "em",
            "ellipsis": "...",
            "snippet": 1
        }]
    }],
    "created": 1590977140,
    "queryProcessors": [{
        "name": "sum_lsh_test_1",
        "active": true,
        "indexes": [
            "default"
        ],
        "processors": [{
                "useSystemDictionary": true,
                "interventionDictionary": "",
                "name": "stop_word"
            },
            {
                "useSystemDictionary": true,
                "interventionDictionary": "",
                "name": "spell_check"
            },
            {
                "useSystemDictionary": true,
                "interventionDictionary": "",
                "name": "term_weighting"
            },
            {
                "useSystemDictionary": true,
                "interventionDictionary": "",
                "name": "synonym"
            }
        ],
        "domain": "GENERAL",
        "created": 1590977142,
        "updated": 1590977142
    }],
    "progressPercent": 100
}

结构

字段

类型

描述

id

String

版本ID

description

String

版本描述

status

String

版本状态- ok 正常- stopped 暂停- frozen 已冻结- initializing 版本初始化中- unavailable 版本已失效- data_waiting 等待数据初始化- data_preparing 数据初始化中

fetchFields

Array

默认展示字段

type

String

版本类型- standard 标准版- advance 老高级版(新应用不支持此类型)- enhanced 新高级版

schema

Object

应用结构参考:Schema

algoDeploymentId

Integer

粗排部署 ID

progressPercent

Integer

数据导入进度百分比(如83代表83%)

created

Integer

版本创建时间戳

firstRanks[]

Object

粗排表达式配置详情参考:FirstRank

secondRanks[]

Object

精排表达式配置详情参考:SecondRank

dataSources[]

Object

数据源详情参考:DataSource

summaries[]

Object

搜索结果摘要设置参考:Summary

queryProcessors[]

Object

查询意图理解规则配置详情参考:QueryProcessor