All Products
Search
Document Center

OpenSearch:App

Last Updated:Oct 21, 2022

Description

The information about a version of an application.

Example

{
    "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
}

Structure

Field

Type

Description

id

String

The ID of the version.

description

String

The description of the version.

status

String

The status of the version. Valid values:- ok- stopped- frozen, initializing- unavailable- data_waiting- data_preparing.

fetchFields

Array

The default display fields.

type

String

The type of the version. Valid values:- standard: a standard application.- advance: an advanced application that is of an old application type. New applications cannot be of this type.- enhanced: an advanced application that is of a new application type.

schema

Object

For more information about the schema of an application, see Schema.

algoDeploymentId

Integer

The ID of the rough sort expression.

progressPercent

Integer

The progress of data import, in percentage. For example, a value of 83 indicates 83%.

created

Integer

The timestamp when the version was created.

firstRanks[]

Object

The information about each rough sort expression. For more information, see FirstRank.

secondRanks[]

Object

The information about each fine sort expression. For more information, see SecondRank.

dataSources[]

Object

The information about each data source. For more information, see DataSource.

summaries[]

Object

The settings of search result summaries. For more information, see Summary.

queryProcessors[]

Object

The information about each query analysis rule. For more information, see QueryProcessor.