{
  "schema": {
    "tables": {
      "main": {
        "name": "main",
        "fields": {
          "category_name": {
            "name": "category_name",
            "label": "cate_name",
            "type": "TEXT",
            "primaryKey": false
          },
          "image_url": {
            "name": "image_url",
            "label": "",
            "type": "LITERAL_ARRAY",
            "primaryKey": false
          },
          "description": {
            "name": "description",
            "label": "description",
            "type": "TEXT",
            "primaryKey": false
          },
          "brand_name": {
            "name": "brand_name",
            "label": "brand_name",
            "type": "TEXT",
            "primaryKey": false
          },
          "thumbnail_url": {
            "name": "thumbnail_url",
            "label": "",
            "type": "LITERAL_ARRAY",
            "primaryKey": false
          },
          "title": {
            "name": "title",
            "label": "title",
            "type": "TEXT",
            "primaryKey": false
          },
          "is_onsale": {
            "name": "is_onsale",
            "label": "",
            "type": "INT",
            "primaryKey": false
          },
          "url": {
            "name": "url",
            "label": "",
            "type": "LITERAL",
            "primaryKey": false
          },
          "brand_id": {
            "name": "brand_id",
            "label": "",
            "type": "LITERAL",
            "primaryKey": false
          },
          "series_id": {
            "name": "series_id",
            "label": "",
            "type": "LITERAL",
            "primaryKey": false
          },
          "sold_num": {
            "name": "sold_num",
            "label": "sold_num",
            "type": "INT",
            "primaryKey": false
          },
          "category_id": {
            "name": "category_id",
            "label": "",
            "type": "INT",
            "primaryKey": false
          },
          "onsale_time": {
            "name": "onsale_time",
            "label": "onsale_time",
            "type": "INT",
            "primaryKey": false
          },
          "price": {
            "name": "price",
            "label": "",
            "type": "DOUBLE",
            "primaryKey": false
          },
          "series_name": {
            "name": "series_name",
            "label": "",
            "type": "TEXT",
            "primaryKey": false
          },
          "is_promotion": {
            "name": "is_promotion",
            "label": "is_promotion",
            "type": "INT",
            "primaryKey": false
          },
          "id": {
            "name": "id",
            "label": "",
            "type": "LITERAL",
            "primaryKey": true
          },
          "seller_id": {
            "name": "seller_id",
            "label": "",
            "type": "LITERAL",
            "primaryKey": false
          },
          "status": {
            "name": "status",
            "label": "",
            "type": "LITERAL",
            "primaryKey": false
          }
        },
        "primaryTable": true
      }
    },
    "indexes": {
      "searchFields": {
        "default": {
          "analyzer": "chn_ecommerce_general",
          "label": "default_index",
          "fields": ["category_name", "description", "brand_name", "title"]
        },
        "category_name": {
          "analyzer": "chn_ecommerce_general",
          "label": "cate_name_index",
          "fields": ["category_name"]
        },
        "category_id": { "label": "", "fields": ["category_id"] },
        "series_name": {
          "analyzer": "chn_ecommerce_general",
          "label": "",
          "fields": ["series_name"]
        },
        "brand_name": {
          "analyzer": "chn_ecommerce_general",
          "label": "",
          "fields": ["brand_name"]
        },
        "vector": {
          "analyzer": "vector_ecommerce_general",
          "label": "vector_index",
          "fields": ["title"]
        },
        "id": { "fields": ["id"] },
        "title": {
          "analyzer": "chn_ecommerce_general",
          "label": "title_index",
          "fields": ["title"]
        },
        "seller_id": { "label": "", "fields": ["seller_id"] },
        "brand_id": { "label": "", "fields": ["brand_id"] },
        "series_id": { "label": "", "fields": ["series_id"] }
      },
      "filterFields": [
        "is_onsale",
        "brand_id",
        "series_id",
        "sold_num",
        "category_id",
        "onsale_time",
        "price",
        "is_promotion",
        "id",
        "seller_id",
        "status"
      ]
    }
  },
  "secondRanks": [
    {
      "isDefault": false,
      "created": 1649661377,
      "meta": " sold_num*5+ price",
      "name": "default_2",
      "description": "",
      "active": false,
      "updated": 1649661377
    },
    {
      "isDefault": true,
      "created": 1648633851,
      "meta": "query_match_ratio(category_name) * 1000 + floor( if(field_match_ratio(brand_name) == 1, 1, field_match_ratio(brand_name) * query_match_ratio(brand_name)) + if(text_relevance(title) + text_relevance(category_name) + text_relevance(brand_name) == 0, -1, 0) ) * 1000 + (text_relevance(title, default, true) * 0.3 + text_relevance(category_name) + text_relevance(brand_name) + 0.5) * (normalize(sold_num) + 0.3) * if(is_promotion, 1, 0.9) * timeliness_ms(onsale_time)",
      "name": "sys_second_default",
      "description": "",
      "active": true,
      "updated": 1648633851
    },
    {
      "isDefault": false,
      "created": 1648633851,
      "meta": "",
      "name": "default",
      "description": "sys default",
      "active": false,
      "updated": 1648633851
    }
  ],
  "created": 1648633851,
  "virtualCluster": "",
  "description": "",
  "type": "enhanced",
  "switchTime": 1648635210,
  "queryProcessors": [
    {
      "indexes": ["default"],
      "created": 1648633851,
      "domain": "ecommerce",
      "name": "sys_default",
      "active": true,
      "processors": [
        {
          "useSystemDictionary": true,
          "name": "term_weighting",
          "interventionDictionary": "dic_ci",
          "ignoreSpace": true
        },
        {
          "useSystemDictionary": true,
          "name": "stop_word",
          "interventionDictionary": "dic_ting"
        },
        {
          "useSystemDictionary": true,
          "name": "synonym",
          "interventionDictionary": "dic_tong"
        },
        { "name": "query_generator", "operator": "AND" },
        {
          "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": "ner",
          "interventionDictionary": "dic_shi",
          "ignoreSpace": true
        },
        {
          "useSystemDictionary": true,
          "name": "vector",
          "vectorIndex": "vector",
          "interventionDictionary": ""
        },
        {
          "useSystemDictionary": true,
          "name": "spell_check",
          "interventionDictionary": "dic_pin"
        }
      ],
      "category": "general",
      "updated": 1649401081
    },
    {
      "indexes": ["title"],
      "created": 1648633851,
      "domain": "ecommerce",
      "name": "sys_title",
      "active": true,
      "processors": [
        {
          "useSystemDictionary": true,
          "name": "spell_check",
          "interventionDictionary": ""
        },
        {
          "useSystemDictionary": true,
          "name": "term_weighting",
          "interventionDictionary": "",
          "ignoreSpace": false
        },
        {
          "useSystemDictionary": true,
          "name": "stop_word",
          "interventionDictionary": ""
        },
        {
          "useSystemDictionary": true,
          "name": "synonym",
          "interventionDictionary": ""
        },
        {
          "useSystemDictionary": true,
          "name": "vector",
          "vectorIndex": "vector",
          "interventionDictionary": ""
        },
        { "name": "query_generator", "operator": "AND" },
        {
          "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": "ner",
          "interventionDictionary": "",
          "ignoreSpace": false
        }
      ],
      "category": "general",
      "updated": 1648633851
    }
  ],
  "fetchFields": [
    "category_name",
    "image_url",
    "description",
    "brand_name",
    "thumbnail_url",
    "title",
    "is_onsale",
    "url",
    "brand_id",
    "series_id",
    "sold_num",
    "category_id",
    "onsale_time",
    "price",
    "series_name",
    "is_promotion",
    "id",
    "seller_id",
    "status"
  ],
  "isCurrent": true,
  "quota": {
    "usedQps": 0,
    "qps": 0,
    "usedDocSize": 0.000108,
    "docSize": 10,
    "usedComputeResource": 0,
    "computeResource": 1000,
    "spec": "opensearch.private.compute"
  },
  "domain": {
    "functions": {
      "service": ["suggest"],
      "algo": ["search_strategy", "text_relevance", "vector_relevance"],
      "qp": [
        "ner",
        "spell_check",
        "stop_word",
        "synonym",
        "term_weighting",
        "vector"
      ]
    },
    "name": "ecommerce",
    "category": "general"
  },
  "progressPercent": 100,
  "id": "110288677",
  "updated": 1648635210,
  "firstRanks": [
    {
      "created": 1648633851,
      "meta": [{ "arg": "", "weight": 1, "attribute": "static_bm25()" }],
      "name": "default",
      "description": "sys default",
      "active": false,
      "type": "STRUCT",
      "updated": 1648633851
    },
    {
      "created": 1648633851,
      "meta": "0.6*static_bm25()+0.4*normalize(sold_num)",
      "name": "sys_first_default",
      "description": "",
      "active": true,
      "type": "STRING",
      "updated": 1648633851
    }
  ],
  "dataSources": [],
  "status": "ok",
  "summaries": []
}
