UserAnalyzer

更新时间:
复制 MD 格式

Describes a custom analyzer in OpenSearch.

Example

{
    "id": 1234,
    "name": "kevin_test2",
    "business": "chn_standard",
    "dicts": [{
        "id": 123,
        "type": "segment",
        "entriesLimit": 4,
        "entriesCount": -1,
        "available": false,
        "created": 1588054131,
        "updated": 1588054131
    }],
    "available": true,
    "created": 1588054131,
    "updated": 1588054131
}

Structure

FieldTypeDescription
idIntegerThe ID of the custom analyzer.
nameStringThe name of the custom analyzer.
businessStringThe built-in analyzer on which the custom analyzer is based. Valid values: chn_standard (a general analyzer for Chinese text), chn_scene_name (an analyzer for person names in Chinese), chn_ecommerce (an analyzer for Chinese text from the E-commerce industry), chn_it_content (an analyzer for IT-related text), en_min (a fine-grained analyzer for English text), th_standard (a general analyzer for Thai text), th_ecommerce (an analyzer for Thai text from the E-commerce industry), vn_standard (a general analyzer for Vietnamese text), chn_community_it (an analyzer for text from the IT industry), chn_ecommerce_general (a general analyzer for text from the E-commerce industry), chn_esports_general (a general analyzer for text from the gaming industry), chn_edu_question (an analyzer for test question-related text from the education industry).
dicts[]ObjectThe custom dictionaries for analysis. For more information, see UserDict.
availableBooleanSpecifies whether the custom analyzer is available.
createdIntegerThe timestamp when the custom analyzer was created. Unit: seconds.
updatedIntegerThe timestamp when the custom analyzer was last updated. Unit: seconds.