App

更新时间:
复制 MD 格式

An App object represents a version of an OpenSearch application. The API returns this object in response to application version queries. Use the fields to check the application status, inspect the schema, and understand how ranking and query analysis are configured.

Example

The following example shows the top-level structure of an App object. Nested objects such as firstRanks and queryProcessors are shown as empty arrays here; see the linked references for their full schemas.

{
    "id": "100303063",
    "description": "",
    "status": "ok",
    "fetchFields": [
        "id",
        "title",
        "buy",
        "cate_id",
        "cate_name"
    ],
    "type": "enhanced",
    "schema": { },
    "algoDeploymentId": 0,
    "progressPercent": 100,
    "created": 1590977140,
    "firstRanks": [],
    "secondRanks": [],
    "dataSources": [],
    "summaries": [],
    "queryProcessors": []
}

Fields

FieldTypeDescription
idStringThe ID of the version.
descriptionStringThe description of the version.
statusStringThe status of the version. See Status values.
fetchFieldsArrayThe default display fields.
typeStringThe type of the version. See Type values.
schemaObjectThe schema of the application. See Schema.
algoDeploymentIdIntegerThe ID of the rough sort expression.
progressPercentIntegerThe progress of data import, as a percentage. For example, 83 means 83%.
createdIntegerThe Unix timestamp when the version was created.
firstRanks[]ObjectThe rough sort expressions. See FirstRank.
secondRanks[]ObjectThe fine sort expressions. See SecondRank.
dataSources[]ObjectThe data sources. See DataSource.
summaries[]ObjectThe search result summary settings. See Summary.
queryProcessors[]ObjectThe query analysis rules. See QueryProcessor.

Status values

The status field returns one of the following values:

ValueDescription
okThe version is running normally.
stoppedThe version has been stopped.
frozenThe version is frozen and not accepting queries.
initializingThe version is being initialized.
unavailableThe version is not available.
data_waitingThe version is waiting for data to be ready.
data_preparingThe service is preparing data for the version.

Type values

The type field identifies the application type:

ValueDescription
standardA standard application.
advanceAn advanced application of the legacy type. New applications cannot use this type.
enhancedAn advanced application of the current type.